// Clean AdminController methods did not return the appropriate value #PSCFV-3645

This commit is contained in:
dMetzger
2012-08-17 07:03:54 +00:00
parent b0448f261d
commit 841db7a805
9 changed files with 27 additions and 10 deletions
@@ -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;
}