[-] BO : Fix bug #PSCFV-7657 all groups checked when creating customers

This commit is contained in:
gRoussac committed 2013-03-01 15:46:39 +01:00
1 parent 233c87b89a
commit bfb1781cab
1 file changed
+3
@@ -502,6 +502,9 @@ class AdminCustomersControllerCore extends AdminController
); );
// Added values of object Group // Added values of object Group
if (!Validate::isUnsignedId($obj->id))
$customer_groups = array();
else
$customer_groups = $obj->getGroups(); $customer_groups = $obj->getGroups();
$customer_groups_ids = array(); $customer_groups_ids = array();
if (is_array($customer_groups)) if (is_array($customer_groups))