// Clean AdminController methods did not return the appropriate value #PSCFV-3645
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16876 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -731,11 +731,12 @@ class AdminCustomersControllerCore extends AdminController
|
||||
{
|
||||
$this->errors[] = Tools::displayError('An account already exists for this e-mail address:').' '.$customer_email;
|
||||
$this->display = 'edit';
|
||||
return $customer;
|
||||
}
|
||||
elseif ($customer = parent::processAdd())
|
||||
{
|
||||
$this->context->smarty->assign('new_customer', $customer);
|
||||
return true;
|
||||
return $customer;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user