X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5e861d92d6d758ba4888e35109cc6df4ab5e2df1..ca6d2f927b985f4d80b31e5e2c6deb98e4fae6f6:/time.php diff --git a/time.php b/time.php index 258f15c1..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();', @@ -313,6 +313,7 @@ if ($request->isPost()) { 'date' => $cl_date, 'user_id' => $user->getActiveUser(), 'group_id' => $user->getActiveGroup(), + 'org_id' => $user->org_id, 'client' => $cl_client, 'project' => $cl_project, 'task' => $cl_task,