[-] BO : Fix bug #PSCFV-7657 all groups checked when creating customers
This commit is contained in:
@@ -502,7 +502,10 @@ class AdminCustomersControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Added values of object Group
|
// 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();
|
$customer_groups_ids = array();
|
||||||
if (is_array($customer_groups))
|
if (is_array($customer_groups))
|
||||||
foreach ($customer_groups as $customer_group)
|
foreach ($customer_groups as $customer_group)
|
||||||
|
|||||||
Reference in New Issue
Block a user