[-] BO: Fix tax rule edition - unique tax rule can't be edited
This commit is contained in:
1 parent
d2ff50ddb7
commit
8d39f32506
2 files changed
+3
-3
No files matched your search
@@ -404,7 +404,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
|
||||
{
|
||||
foreach ($this->selected_states as $id_state)
|
||||
{
|
||||
if ($tax_rules_group->hasUniqueTaxRuleForCountry($id_country, $id_state))
|
||||
if ($tax_rules_group->hasUniqueTaxRuleForCountry($id_country, $id_state, $id_rule))
|
||||
{
|
||||
$this->errors[] = Tools::displayError('A tax rule already exists for this country/state with tax only behavior');
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user