[-] FO : BugFix : #PSCFV-3283 : Customer group deleted when updating personnal informations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16601 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -222,7 +222,8 @@ class CustomerCore extends ObjectModel
|
|||||||
|
|
||||||
if ($this->newsletter && !Validate::isDate($this->newsletter_date_add))
|
if ($this->newsletter && !Validate::isDate($this->newsletter_date_add))
|
||||||
$this->newsletter_date_add = date('Y-m-d H:i:s');
|
$this->newsletter_date_add = date('Y-m-d H:i:s');
|
||||||
$this->updateGroup($this->groupBox);
|
if (Context::getContext()->controller->controller_type == 'admin')
|
||||||
|
$this->updateGroup($this->groupBox);
|
||||||
return parent::update(true);
|
return parent::update(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user