]> wagnertech.de Git - timetracker.git/blobdiff - mobile/client_edit.php
Started to populate org_id during import of expense items.
[timetracker.git] / mobile / client_edit.php
index eb85922901956bf3ea8289f58d8d7f0385ff575a..73d50cac2ccde3d9c5f1eff390104aaa83733c96 100644 (file)
@@ -43,7 +43,7 @@ if (!$user->isPluginEnabled('cl')) {
 
 $cl_id = (int) $request->getParameter('id');
 
-$projects = ttTeamHelper::getActiveProjects($user->team_id);
+$projects = ttTeamHelper::getActiveProjects($user->group_id);
 
 if ($request->isPost()) {
   $cl_name = trim($request->getParameter('name'));
@@ -104,7 +104,8 @@ if ($request->isPost()) {
     if ($request->getParameter('btn_copy')) {
       if (!ttClientHelper::getClientByName($cl_name)) {
         if (ttClientHelper::insert(array(
-          'team_id' => $user->team_id,
+          'group_id' => $user->getActiveGroup(),
+          'org_id' => $user->org_id,
           'name' => $cl_name,
           'address' => $cl_address,
           'tax' => $cl_tax,