// Improve AdminGroupShopController
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10323 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -156,6 +156,7 @@ class AdminGroupShopControllerCore extends AdminController
|
|||||||
'zone' => $this->l('Zones'),
|
'zone' => $this->l('Zones'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!$this->object->id)
|
||||||
$this->fields_import_form = array(
|
$this->fields_import_form = array(
|
||||||
'legend' => array(
|
'legend' => array(
|
||||||
'title' => $this->l('Import data from another group shop')
|
'title' => $this->l('Import data from another group shop')
|
||||||
@@ -186,8 +187,9 @@ class AdminGroupShopControllerCore extends AdminController
|
|||||||
'disabled' => $disabled,
|
'disabled' => $disabled,
|
||||||
'checked' => (Tools::getValue('addgroup_shop') !== false) ? true : false,
|
'checked' => (Tools::getValue('addgroup_shop') !== false) ? true : false,
|
||||||
'defaultGroup' => Shop::getInstance(Configuration::get('PS_SHOP_DEFAULT'))->getGroupID(),
|
'defaultGroup' => Shop::getInstance(Configuration::get('PS_SHOP_DEFAULT'))->getGroupID(),
|
||||||
'form_import' => $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));
|
||||||
|
|
||||||
return parent::initForm();
|
return parent::initForm();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user