[-] FO : Fix bug #PSCFV-7388 Guest checkout & state validation thankx to Sergio

This commit is contained in:
gRoussac
2013-01-24 09:28:06 +01:00
parent 39d7863eac
commit 7b48cdd068
+1 -1
View File
@@ -517,7 +517,7 @@ class AuthControllerCore extends FrontController
if (!count($this->errors))
{
// if registration type is in one step, we save the address
if (Configuration::get('PS_REGISTRATION_PROCESS_TYPE'))
if ((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Tools::isSubmit('submitGuestAccount'))
if (!($country = new Country($address->id_country, Configuration::get('PS_LANG_DEFAULT'))) || !Validate::isLoadedObject($country))
die(Tools::displayError());
$contains_state = isset($country) && is_object($country) ? (int)$country->contains_states: 0;