// fix about PS_CUSTOMER_GROUP (replacing value 3 by PS_CUSTOMER_GROUP)

This commit is contained in:
vChabot
2012-02-01 15:25:59 +00:00
parent a3f971f470
commit e3da900938
+2 -2
View File
@@ -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('