]> wagnertech.de Git - timetracker.git/blobdiff - client_edit.php
Some refactoring for subgroups.
[timetracker.git] / client_edit.php
index a5c1b8b72c515e703f12b8b9d2d9e770d6b05d2f..34c0a07062e1eeec1e64accddb82c8113c9e0687 100644 (file)
@@ -103,7 +103,7 @@ if ($request->isPost()) {
     if ($request->getParameter('btn_copy')) {
       if (!ttClientHelper::getClientByName($cl_name)) {
         if (ttClientHelper::insert(array(
-          'group_id' => $user->getActiveGroup(),
+          'group_id' => $user->getGroup(),
           'org_id' => $user->org_id,
           'name' => $cl_name,
           'address' => $cl_address,