X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/3c5f822f90846e9a65866c9e33b7e1ff81b46b1f..ca6d2f927b985f4d80b31e5e2c6deb98e4fae6f6:/time.php diff --git a/time.php b/time.php index 68aaf40e..c7d2979c 100644 --- a/time.php +++ b/time.php @@ -107,9 +107,9 @@ $_SESSION['task'] = $cl_task; // Elements of timeRecordForm. $form = new Form('timeRecordForm'); -if (defined('SUBGROUP_DEBUG') && isTrue(SUBGROUP_DEBUG)) { +if (isTrue(SUBGROUP_DEBUG)) { if ($user->can('manage_subgroups')) { - $groups = $user->getGroups(); + $groups = $user->getGroupsForDropdown(); if (count($groups) > 1) { $form->addInput(array('type'=>'combobox', 'onchange'=>'this.form.submit();',