]> wagnertech.de Git - timetracker.git/blobdiff - mobile/project_add.php
Started to populate org_id during import of expense items.
[timetracker.git] / mobile / project_add.php
index b0d5394d46db844053fe7db083399a4e332d2ba2..6d68a178e5164d95130d0af7fb0d3fcb1db2a166 100644 (file)
@@ -78,7 +78,8 @@ if ($request->isPost()) {
   if ($err->no()) {
     if (!ttProjectHelper::getProjectByName($cl_name)) {
       if (ttProjectHelper::insert(array(
-        'group_id' => $user->group_id,
+        'group_id' => $user->getActiveGroup(),
+        'org_id' => $user->org_id,
         'name' => $cl_name,
         'description' => $cl_description,
         'users' => $cl_users,