[-] CORE : fixed bug #PSCFV-4523 - Static _PS_DEFAULT_CUSTOMER_GROUP_ is still use in code even if deprecated 1.5.0.1
This commit is contained in:
@@ -432,7 +432,7 @@ class LocalizationPackCore
|
||||
$attributes = $xml->group_default->attributes();
|
||||
if (isset($attributes['price_display_method']) && in_array((int)$attributes['price_display_method'], array(0, 1)))
|
||||
{
|
||||
$group = new Group((int)_PS_DEFAULT_CUSTOMER_GROUP_);
|
||||
$group = new Group((int)Configuration::get('PS_CUSTOMER_GROUP'));
|
||||
$group->price_display_method = (int)$attributes['price_display_method'];
|
||||
if (!$group->save())
|
||||
$this->_errors[] = Tools::displayError('An error occurred during the default group update');
|
||||
|
||||
Reference in New Issue
Block a user