[-] 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:
+1
-1
@@ -157,7 +157,7 @@ class GroupCore extends ObjectModel
|
||||
|
||||
public function delete()
|
||||
{
|
||||
if ($this->id == _PS_DEFAULT_CUSTOMER_GROUP_)
|
||||
if ($this->id == (int)Configuration::get('PS_CUSTOMER_GROUP'))
|
||||
return false;
|
||||
if (parent::delete())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user