X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=ae17aa0ade163a7fe12d4650919dd5ff00fc027f;hb=f58ab716cb0cc4b8be8e48723b345bfab29697a6;hp=68aaf40e7e4f9648c12f24d8e67cfdd9c0f878ea;hpb=3c5f822f90846e9a65866c9e33b7e1ff81b46b1f;p=timetracker.git diff --git a/time.php b/time.php index 68aaf40e..ae17aa0a 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();', @@ -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,