// improve adminShopController adminShopUrlController and adminGroupShopController code, in order to have a default Status value activated.
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
{extends file="helper/form/form.tpl"}
|
{extends file="helper/form/form.tpl"}
|
||||||
|
{debug}
|
||||||
{block name="label"}
|
{block name="label"}
|
||||||
|
|
||||||
{if $input.type == 'text' && $input.name == 'name'}
|
{if $input.type == 'text' && $input.name == 'name'}
|
||||||
|
|||||||
@@ -229,7 +229,9 @@ class AdminGroupShopControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
if (isset($this->fields_import_form))
|
if (isset($this->fields_import_form))
|
||||||
$this->tpl_form_vars = array_merge($this->tpl_form_vars, array('form_import' => $this->fields_import_form));
|
$this->tpl_form_vars = array_merge($this->tpl_form_vars, array('form_import' => $this->fields_import_form));
|
||||||
|
$this->fields_value = array(
|
||||||
|
'active' => true
|
||||||
|
);
|
||||||
return parent::renderForm();
|
return parent::renderForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class AdminShopControllerCore extends AdminController
|
|||||||
'name' => array(
|
'name' => array(
|
||||||
'title' => $this->l('Shop'),
|
'title' => $this->l('Shop'),
|
||||||
'width' => 'auto',
|
'width' => 'auto',
|
||||||
'filter_key' => 'a!name'
|
'filter_key' => 'b!name'
|
||||||
),
|
),
|
||||||
'group_shop_name' => array(
|
'group_shop_name' => array(
|
||||||
'title' => $this->l('Group Shop'),
|
'title' => $this->l('Group Shop'),
|
||||||
@@ -326,7 +326,8 @@ class AdminShopControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->fields_value = array(
|
$this->fields_value = array(
|
||||||
'id_group_shop' => $obj->id_group_shop
|
'id_group_shop' => $obj->id_group_shop,
|
||||||
|
'active' => true
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->tpl_form_vars = array(
|
$this->tpl_form_vars = array(
|
||||||
|
|||||||
@@ -229,7 +229,8 @@ class AdminShopUrlControllerCore extends AdminController
|
|||||||
$this->fields_value = array(
|
$this->fields_value = array(
|
||||||
'domain' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'domain') : $current_shop->domain,
|
'domain' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'domain') : $current_shop->domain,
|
||||||
'domain_ssl' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'domain_ssl') : $current_shop->domain_ssl,
|
'domain_ssl' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'domain_ssl') : $current_shop->domain_ssl,
|
||||||
'physical_uri' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'physical_uri') : $current_shop->physical_uri
|
'physical_uri' => Validate::isLoadedObject($obj) ? $this->getFieldValue($obj, 'physical_uri') : $current_shop->physical_uri,
|
||||||
|
'active' => true
|
||||||
);
|
);
|
||||||
|
|
||||||
return parent::renderForm();
|
return parent::renderForm();
|
||||||
|
|||||||
Reference in New Issue
Block a user