From e3da900938864cbaab45f1f86b074b50dc62bb40 Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 1 Feb 2012 15:25:59 +0000 Subject: [PATCH] // fix about PS_CUSTOMER_GROUP (replacing value 3 by PS_CUSTOMER_GROUP) --- classes/Customer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Customer.php b/classes/Customer.php index a0d476b6d..6bdf2adaa 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -542,7 +542,7 @@ class CustomerCore extends ObjectModel public static function getGroupsStatic($id_customer) { if (!Group::isFeatureActive()) - return array(3); + return array(Configuration::get('PS_CUSTOMER_GROUP')); if (!isset(self::$_customer_groups[$id_customer])) { @@ -582,7 +582,7 @@ class CustomerCore extends ObjectModel public static function getDefaultGroupId($id_customer) { if (!Group::isFeatureActive()) - return 3; + return Configuration::get('PS_CUSTOMER_GROUP'); if (!isset(self::$_defaultGroupId[(int)$id_customer])) self::$_defaultGroupId[(int)$id_customer] = Db::getInstance()->getValue('