// improve adminShopController adminShopUrlController and adminGroupShopController code, in order to have a default Status value activated.

This commit is contained in:
mBertholino
2011-12-19 14:36:29 +00:00
parent cc2954ff62
commit ef17316423
4 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/form/form.tpl"}
{debug}
{block name="label"}
{if $input.type == 'text' && $input.name == 'name'}
@@ -229,7 +229,9 @@ class AdminGroupShopControllerCore extends AdminController
);
if (isset($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();
}
+3 -2
View File
@@ -43,7 +43,7 @@ class AdminShopControllerCore extends AdminController
'name' => array(
'title' => $this->l('Shop'),
'width' => 'auto',
'filter_key' => 'a!name'
'filter_key' => 'b!name'
),
'group_shop_name' => array(
'title' => $this->l('Group Shop'),
@@ -326,7 +326,8 @@ class AdminShopControllerCore extends AdminController
);
$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(
+2 -1
View File
@@ -229,7 +229,8 @@ class AdminShopUrlControllerCore extends AdminController
$this->fields_value = array(
'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,
'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();