diff options
author | msquare <msquare@notrademark.de> | 2018-12-27 19:08:35 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-12-27 19:08:35 +0100 |
commit | db26412e6c155a40bca58cf2982911e1f3fb370c (patch) | |
tree | 23f96ff47c4ad12f8721e0f8762feb07a8703b9c /includes/pages | |
parent | 689735ad51a8ec7bd18c60be3407abf3bc17e228 (diff) |
fixes #549: fill missing arrival dates and prevent setting arrival by admin-user instead of admin-arrive
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_user.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index 72caa48f..d42c3b39 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -75,7 +75,12 @@ function admin_user() // Gekommen? $html .= ' <tr><td>Gekommen</td><td>' . "\n"; - $html .= html_options('eGekommen', $options, $user_source->state->arrived) . '</td></tr>' . "\n"; + if($user_source->state->arrived) { + $html .= _('Yes'); + } else { + $html .= _('No'); + } + $html .= '</td></tr>' . "\n"; // Aktiv? $html .= ' <tr><td>Aktiv</td><td>' . "\n"; @@ -263,7 +268,6 @@ function admin_user() $user_source->contact->mobile = $request->postData('eHandy'); $user_source->contact->dect = $request->postData('eDECT'); $user_source->contact->save(); - $user_source->state->arrived = $request->postData('eGekommen'); $user_source->state->active = $request->postData('eAktiv'); $user_source->state->force_active = $force_active; $user_source->state->got_shirt = $request->postData('eTshirt'); @@ -271,7 +275,6 @@ function admin_user() engelsystem_log( 'Updated user: ' . $request->postData('eNick') . ', ' . $request->postData('eSize') - . ', arrived: ' . $request->postData('eVorname') . ', active: ' . $request->postData('eAktiv') . ', tshirt: ' . $request->postData('eTshirt') ); |