[-] BO : the default country of shop is correctly selected by default in forms with country field #PSTEST-493
This commit is contained in:
@@ -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()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user