]> wagnertech.de Git - timetracker.git/blobdiff - time.php
Fixed export-import to include group descriptions.
[timetracker.git] / time.php
index 258f15c19fd2a9b4d5bc6af9087b92665d522204..9e6be9a8ff440064f940fd662051c32b6cb19238 100644 (file)
--- a/time.php
+++ b/time.php
@@ -107,7 +107,7 @@ $_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();
   if (count($groups) > 1) {
@@ -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,