From 7c9d4ee5dbd2da8f4697274d2a12d4774ecebbf4 Mon Sep 17 00:00:00 2001 From: vChabot Date: Mon, 30 Jul 2012 12:21:52 +0000 Subject: [PATCH] [-] 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 --- classes/Customer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Customer.php b/classes/Customer.php index 7aa14a3c6..729665803 100644 --- a/classes/Customer.php +++ b/classes/Customer.php @@ -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); }