diff --git a/admin-dev/themes/default/template/footer_toolbar.tpl b/admin-dev/themes/default/template/footer_toolbar.tpl
index bae785f6b..3d7843af9 100644
--- a/admin-dev/themes/default/template/footer_toolbar.tpl
+++ b/admin-dev/themes/default/template/footer_toolbar.tpl
@@ -80,6 +80,9 @@
return false;
submited = true;
+ if ($(this).attr('href').replace('#', '').replace(/\s/g, '') != '')
+ return true;
+
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('');
@@ -90,6 +93,9 @@
if (btn_save_and_stay)
{
btn_save_and_stay.click(function() {
+ if ($(this).attr('href').replace('#', '').replace(/\s/g, '') != '')
+ return true;
+
//add hidden input to emulate submit button click when posting the form -> field name posted
btn_submit.before('');
diff --git a/controllers/admin/AdminTaxRulesGroupController.php b/controllers/admin/AdminTaxRulesGroupController.php
index b577d004c..c3859d401 100644
--- a/controllers/admin/AdminTaxRulesGroupController.php
+++ b/controllers/admin/AdminTaxRulesGroupController.php
@@ -334,11 +334,6 @@ class AdminTaxRulesGroupControllerCore extends AdminController
'label' => $this->l('Description:'),
'name' => 'description',
)
- ),
- 'submit' => array(
- 'title' => $this->l('Save and stay'),
- 'class' => 'btn btn-default',
- 'stay' => true
)
);
@@ -365,8 +360,8 @@ class AdminTaxRulesGroupControllerCore extends AdminController
$helper->default_form_language = $this->default_form_language;
$helper->allow_employee_form_lang = $this->allow_employee_form_lang;
$helper->fields_value = $this->getFieldsValue($this->object);
- $helper->toolbar_btn['save'] = array(
- 'href' => self::$currentIndex.'&id_tax_rules_group='.$obj->id.'&updatetax_rules_group&token='.$this->token,
+ $helper->toolbar_btn['save_new_rule'] = array(
+ 'href' => self::$currentIndex.'&id_tax_rules_group='.$obj->id.'&action=create_rule&token='.$this->token,
'desc' => 'Save tax rule',
'class' => 'process-icon-save'
);