[-] BO : the default country of shop is correctly selected by default in forms with country field #PSTEST-493
This commit is contained in:
@@ -505,7 +505,8 @@ class AdminManufacturersControllerCore extends AdminController
|
||||
|
||||
$this->fields_value = array(
|
||||
'name' => Manufacturer::getNameById($address->id_manufacturer),
|
||||
'alias' => 'manufacturer'
|
||||
'alias' => 'manufacturer',
|
||||
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')
|
||||
);
|
||||
|
||||
$this->initToolbar();
|
||||
|
||||
@@ -291,7 +291,8 @@ class AdminStoresControllerCore extends AdminController
|
||||
'image' => $image ? $image : false,
|
||||
'size' => $image ? filesize(_PS_STORE_IMG_DIR_.'/'.$obj->id.'.jpg') / 1000 : false,
|
||||
'days' => $days,
|
||||
'hours' => isset($hours_unserialized) ? $hours_unserialized : false
|
||||
'hours' => isset($hours_unserialized) ? $hours_unserialized : false,
|
||||
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')
|
||||
);
|
||||
|
||||
return parent::renderForm();
|
||||
|
||||
@@ -230,7 +230,10 @@ class AdminSuppliersControllerCore extends AdminController
|
||||
);
|
||||
}
|
||||
else
|
||||
$this->fields_value['id_address'] = 0;
|
||||
$this->fields_value = array(
|
||||
'id_address' => 0,
|
||||
'id_country' => Configuration::get('PS_COUNTRY_DEFAULT')
|
||||
);
|
||||
|
||||
|
||||
if (Shop::isFeatureActive())
|
||||
|
||||
@@ -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