// Fix PrestaShopException typo
This commit is contained in:
1 parent
24e0c78f63
commit
e28d3ce80f
36 files changed
+96
-86
No files matched your search
@@ -131,7 +131,7 @@ class AddressControllerCore extends FrontController
|
||||
|
||||
// Check country
|
||||
if (!($country = new Country($address->id_country)) || !Validate::isLoadedObject($country))
|
||||
throw new PrestashopException('Country cannot be loaded with address->id_country');
|
||||
throw new PrestaShopException('Country cannot be loaded with address->id_country');
|
||||
|
||||
if ((int)$country->contains_states && !(int)$address->id_state)
|
||||
$this->errors[] = Tools::displayError('This country requires a state selection.');
|
||||
|
||||
Reference in new issue
Block a user