]> wagnertech.de Git - timetracker.git/blobdiff - time.php
Added group dropdown in tasks.php page.
[timetracker.git] / time.php
index 9e6be9a8ff440064f940fd662051c32b6cb19238..ae17aa0ade163a7fe12d4650919dd5ff00fc027f 100644 (file)
--- a/time.php
+++ b/time.php
@@ -109,7 +109,7 @@ $form = new Form('timeRecordForm');
 
 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();',
@@ -312,7 +312,7 @@ if ($request->isPost()) {
       $id = ttTimeHelper::insert(array(
         'date' => $cl_date,
         'user_id' => $user->getActiveUser(),
-        'group_id' => $user->getActiveGroup(),
+        'group_id' => $user->getGroup(),
         'org_id' => $user->org_id,
         'client' => $cl_client,
         'project' => $cl_project,