// Fixed taxes in localization packs
This commit is contained in:
1 parent
773c73c20f
commit
f44e98292b
1 file changed
+1
-1
@@ -156,7 +156,7 @@ class LocalizationPackCore
|
||||
$tax->rate = (float)$attributes['rate'];
|
||||
$tax->active = 1;
|
||||
|
||||
if ($error = $tax->validateFields(false, true) || $error = $tax->validateFieldsLang(false, true))
|
||||
if (($error = $tax->validateFields(false, true)) !== true || ($error = $tax->validateFieldsLang(false, true)) !== true)
|
||||
{
|
||||
$this->_errors[] = Tools::displayError('Invalid tax properties.').' '.$error;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user