X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=mobile%2Fclient_add.php;h=f83c720ae190c2279ffbaae5f2f05c4881631302;hb=54c7f39c93815e99c45f3f974a4ec14673fee1b2;hp=fc57853d7409263e96499b04122c6c233fd62a8a;hpb=dd2ba64b1b4aaddacec2b9f6763c0ed7a35efc3b;p=timetracker.git diff --git a/mobile/client_add.php b/mobile/client_add.php index fc57853d..f83c720a 100644 --- a/mobile/client_add.php +++ b/mobile/client_add.php @@ -41,7 +41,7 @@ if (!$user->isPluginEnabled('cl')) { exit(); } -$projects = ttTeamHelper::getActiveProjects($user->team_id); +$projects = ttTeamHelper::getActiveProjects($user->group_id); if ($request->isPost()) { $cl_name = trim($request->getParameter('name')); @@ -71,7 +71,7 @@ if ($request->isPost()) { if ($err->no()) { if (!ttClientHelper::getClientByName($cl_name)) { if (ttClientHelper::insert(array( - 'team_id' => $user->team_id, + 'group_id' => $user->group_id, 'name' => $cl_name, 'address' => $cl_address, 'tax' => $cl_tax,