[-] BO : the default country of shop is correctly selected by default in forms with country field #PSTEST-493

This commit is contained in:
aFolletete
2012-02-16 15:55:11 +00:00
parent ae39800143
commit bdcc800cd4
4 changed files with 12 additions and 13 deletions
@@ -370,22 +370,16 @@ class AdminWarehousesControllerCore extends AdminController
'id_state' => $address->id_state,
);
else
$this->fields_value['id_address'] = 0;
$this->fields_value = array(
'id_address' => 0,
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')
);
$this->fields_value['ids_shops[]'] = $ids_shop;
$this->fields_value['ids_carriers[]'] = $carriers;
return parent::renderForm();
}
/**
* AdminController::postProcess() override
* @see AdminController::postProcess()
*/
public function postProcess()
{
return parent::postProcess();
}
/**
* @see AdminController::renderView()
*/