]> wagnertech.de Git - timetracker.git/blobdiff - client_add.php
Fixed time.php for subgroup support in high rank situations.
[timetracker.git] / client_add.php
index dc99e6c8949ad837287a81b85345c8b7c7f62feb..b3d27ac79b2ea455807bfb6dcaa3a2fdff766f5b 100644 (file)
@@ -71,7 +71,7 @@ if ($request->isPost()) {
   if ($err->no()) {
     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,
@@ -83,7 +83,7 @@ if ($request->isPost()) {
       } else
         $err->add($i18n->get('error.db'));
      } else
-       $err->add($i18n->get('error.client_exists'));
+       $err->add($i18n->get('error.object_exists'));
   }
 } // isPost