[-] Fo : Fix bug #PSCFV-7956 select invoice address when adding a first new address

This commit is contained in:
gRoussac
2013-03-04 13:35:48 +01:00
parent 6f6a58e8f3
commit aaee300413
3 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ class AddressControllerCore extends FrontController
else // Update cart address
$this->context->cart->autosetProductAddress();
if (Tools::getValue('type') == 'invoice' && Configuration::get('PS_ORDER_PROCESS_TYPE'))
if ((bool)(Tools::getValue('select_address', false)) == true OR Tools::getValue('type') == 'invoice' && Configuration::get('PS_ORDER_PROCESS_TYPE'))
{
$this->context->cart->id_address_invoice = (int)$address->id;
$this->context->cart->update();