]> wagnertech.de Git - timetracker.git/blobdiff - client_edit.php
Started to populate org_id upon client creation.
[timetracker.git] / client_edit.php
index 74062d06eaf630bb473281bcf53fd4aa90b20da2..19aa5f8937631ed23a2714bb9ea9891ef53f8a07 100644 (file)
@@ -103,7 +103,8 @@ if ($request->isPost()) {
     if ($request->getParameter('btn_copy')) {
       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,