[-] BO : Fix bug #PSCFV-7657 all groups checked when creating customers
This commit is contained in:
1 parent
ec4e179063
commit
046fbf52b8
1 file changed
+4
-1
@@ -502,7 +502,10 @@ class AdminCustomersControllerCore extends AdminController
|
||||
);
|
||||
|
||||
// Added values of object Group
|
||||
$customer_groups = $obj->getGroups();
|
||||
if (!Validate::isUnsignedId($obj->id))
|
||||
$customer_groups = array();
|
||||
else
|
||||
$customer_groups = $obj->getGroups();
|
||||
$customer_groups_ids = array();
|
||||
if (is_array($customer_groups))
|
||||
foreach ($customer_groups as $customer_group)
|
||||
|
||||
Reference in new issue
Block a user