// validateControler is now deprecated
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8158 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
6d414e45c5
commit
7e1ac5572e
4 files changed
+6
-4
No files matched your search
@@ -534,9 +534,11 @@ abstract class ObjectModelCore
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: refactor rename all calls to this to validateController
|
* TODO: refactor rename all calls to this to validateController
|
||||||
|
* @deprecated since 1.5 use validateController instead
|
||||||
*/
|
*/
|
||||||
public function validateControler($htmlentities = true)
|
public function validateControler($htmlentities = true)
|
||||||
{
|
{
|
||||||
|
Tools::displayAsDeprecated();
|
||||||
return $this->validateController($htmlentities);
|
return $this->validateController($htmlentities);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,13 +83,13 @@ class AuthControllerCore extends FrontController
|
|||||||
$_POST['firstname'] = $_POST['customer_firstname'];
|
$_POST['firstname'] = $_POST['customer_firstname'];
|
||||||
if (!Tools::getValue('phone') AND !Tools::getValue('phone_mobile'))
|
if (!Tools::getValue('phone') AND !Tools::getValue('phone_mobile'))
|
||||||
$this->errors[] = Tools::displayError('You must register at least one phone number');
|
$this->errors[] = Tools::displayError('You must register at least one phone number');
|
||||||
$this->errors = array_unique(array_merge($this->errors, $customer->validateControler()));
|
$this->errors = array_unique(array_merge($this->errors, $customer->validateController()));
|
||||||
/* Preparing address */
|
/* Preparing address */
|
||||||
$address = new Address();
|
$address = new Address();
|
||||||
$_POST['lastname'] = $lastnameAddress;
|
$_POST['lastname'] = $lastnameAddress;
|
||||||
$_POST['firstname'] = $firstnameAddress;
|
$_POST['firstname'] = $firstnameAddress;
|
||||||
$address->id_customer = 1;
|
$address->id_customer = 1;
|
||||||
$this->errors = array_unique(array_merge($this->errors, $address->validateControler()));
|
$this->errors = array_unique(array_merge($this->errors, $address->validateController()));
|
||||||
|
|
||||||
/* US customer: normalize the address */
|
/* US customer: normalize the address */
|
||||||
if($address->id_country == Country::getByIso('US'))
|
if($address->id_country == Country::getByIso('US'))
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class IdentityControllerCore extends FrontController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$prev_id_default_group = $customer->id_default_group;
|
$prev_id_default_group = $customer->id_default_group;
|
||||||
$this->errors = $customer->validateControler();
|
$this->errors = $customer->validateController();
|
||||||
}
|
}
|
||||||
if (!sizeof($this->errors))
|
if (!sizeof($this->errors))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class OrderOpcControllerCore extends ParentOrderController
|
|||||||
$this->context->customer->birthday = (int)Tools::getValue('years').'-'.(int)Tools::getValue('months').'-'.(int)Tools::getValue('days');
|
$this->context->customer->birthday = (int)Tools::getValue('years').'-'.(int)Tools::getValue('months').'-'.(int)Tools::getValue('days');
|
||||||
$_POST['lastname'] = $_POST['customer_lastname'];
|
$_POST['lastname'] = $_POST['customer_lastname'];
|
||||||
$_POST['firstname'] = $_POST['customer_firstname'];
|
$_POST['firstname'] = $_POST['customer_firstname'];
|
||||||
$this->errors = $this->context->customer->validateControler();
|
$this->errors = $this->context->customer->validateController();
|
||||||
$this->context->customer->newsletter = (int)Tools::isSubmit('newsletter');
|
$this->context->customer->newsletter = (int)Tools::isSubmit('newsletter');
|
||||||
$this->context->customer->optin = (int)Tools::isSubmit('optin');
|
$this->context->customer->optin = (int)Tools::isSubmit('optin');
|
||||||
$return = array(
|
$return = array(
|
||||||
|
|||||||
Reference in new issue
Block a user