]> wagnertech.de Git - timetracker.git/blobdiff - client_add.php
Some progress with writing new export.
[timetracker.git] / client_add.php
index 3afcbc072aca5b661eaf0d7bb524e8336431c264..dc99e6c8949ad837287a81b85345c8b7c7f62feb 100644 (file)
@@ -71,7 +71,8 @@ if ($request->isPost()) {
   if ($err->no()) {
     if (!ttClientHelper::getClientByName($cl_name)) {
       if (ttClientHelper::insert(array(
-        'group_id' => $user->group_id,
+        'group_id' => $user->getActiveGroup(),
+        'org_id' => $user->org_id,
         'name' => $cl_name,
         'address' => $cl_address,
         'tax' => $cl_tax,