[-] 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:
vChabot
2012-07-30 12:21:52 +00:00
parent d62949ed65
commit 7c9d4ee5db
+2 -1
View File
@@ -222,7 +222,8 @@ class CustomerCore extends ObjectModel
if ($this->newsletter && !Validate::isDate($this->newsletter_date_add))
$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);
}