X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/7d8f23aae5b4dbcff5a3dc565c4418acd7df30ea..28b9f9c7660fae16fb166dad42ffb39299390125:/profile_edit.php diff --git a/profile_edit.php b/profile_edit.php index a9e9a42c..6d82bf78 100644 --- a/profile_edit.php +++ b/profile_edit.php @@ -76,6 +76,7 @@ if ($request->isPost()) { $cl_notifications = $request->getParameter('notifications'); $cl_locking = $request->getParameter('locking'); $cl_quotas = $request->getParameter('quotas'); + $cl_week_view = $request->getParameter('week_view'); } } else { $cl_name = $user->name; @@ -109,6 +110,7 @@ if ($request->isPost()) { $cl_notifications = in_array('no', $plugins); $cl_locking = in_array('lk', $plugins); $cl_quotas = in_array('mq', $plugins); + $cl_week_view = in_array('wv', $plugins); } } @@ -205,6 +207,9 @@ if ($user->canManageTeam()) { $form->addInput(array('type'=>'checkbox','name'=>'notifications','value'=>$cl_notifications,'onchange'=>'handlePluginCheckboxes()')); $form->addInput(array('type'=>'checkbox','name'=>'locking','value'=>$cl_locking,'onchange'=>'handlePluginCheckboxes()')); $form->addInput(array('type'=>'checkbox','name'=>'quotas','value'=>$cl_quotas,'onchange'=>'handlePluginCheckboxes()')); + if (defined('WEEK_VIEW_DEBUG') && isTrue(WEEK_VIEW_DEBUG)) { + $form->addInput(array('type'=>'checkbox','name'=>'week_view','value'=>$cl_week_view)); + } } $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->getKey('button.save'))); @@ -261,6 +266,8 @@ if ($request->isPost()) { $plugins .= ',lk'; if ($cl_quotas) $plugins .= ',mq'; + if ($cl_week_view) + $plugins .= ',wv'; $plugins = trim($plugins, ','); $update_result = ttTeamHelper::update($user->team_id, array(