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,