// fix update form.tpl in AdminTaxRulesGroupsController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9926 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-07 13:03:04 +00:00
parent a3d762e854
commit 57080f48cd
8 changed files with 50 additions and 40 deletions
@@ -78,7 +78,6 @@ class AdminTaxRulesGroupControllerCore extends AdminController
$this->lang = false;
$this->simple_header = true;
$this->toolbar_btn = null;
$this->no_back = false;
$this->list_no_link = true;
$this->fieldsDisplay = array(
@@ -132,6 +131,8 @@ class AdminTaxRulesGroupControllerCore extends AdminController
ON (a.`id_tax` = t.`id_tax`)';
$this->_where = 'AND `id_tax_rules_group` = '.(int)$id_group;
$this->show_toolbar = false;
return parent::initList();
}
@@ -194,10 +195,10 @@ class AdminTaxRulesGroupControllerCore extends AdminController
'desc' => $this->l('Add new tax rule')
);
$content = parent::initForm();
$this->tpl_folder = 'tax_rules/';
$content .= $this->initRuleForm();
// We change the variable $ tpl_folder to avoid the overhead calling the file in list_action_edit.tpl in intList ();
$this->tpl_folder = 'tax_rules/';
$content .= $this->initRulesList((int)$obj->id);
}
@@ -332,12 +333,14 @@ class AdminTaxRulesGroupControllerCore extends AdminController
$this->getlanguages();
$helper = new HelperForm();
$helper->override_tpl = $this->tpl_folder;
$helper->override_folder = $this->tpl_folder;
$helper->currentIndex = self::$currentIndex;
$helper->token = $this->token;
$helper->table = 'tax_rule';
$helper->identifier = 'id_tax_rule';
$helper->id = $obj->id;
$helper->toolbar_fix = true;
$helper->show_toolbar = false;
$helper->languages = $this->_languages;
$helper->default_form_language = $this->default_form_language;
$helper->allow_employee_form_lang = $this->allow_employee_form_lang;