]> wagnertech.de Git - timetracker.git/blobdiff - time.php
Improved population of group dropdown to include the entire stack of groups.
[timetracker.git] / time.php
index 68aaf40e7e4f9648c12f24d8e67cfdd9c0f878ea..c7d2979cd68d7aed97d77ee82d54b26908b491bf 100644 (file)
--- 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();',