[-] FO : BugFix : #PSCFV-3283 : Customer group deleted when updating personnal informations
This commit is contained in:
1 parent
6db76c187e
commit
e9cc7808ad
1 file changed
+1
@@ -222,6 +222,7 @@ 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');
|
||||||
|
if (Context::getContext()->controller->controller_type == 'admin')
|
||||||
$this->updateGroup($this->groupBox);
|
$this->updateGroup($this->groupBox);
|
||||||
return parent::update(true);
|
return parent::update(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user