// Fixed taxes in localization packs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17576 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -156,7 +156,7 @@ class LocalizationPackCore
|
|||||||
$tax->rate = (float)$attributes['rate'];
|
$tax->rate = (float)$attributes['rate'];
|
||||||
$tax->active = 1;
|
$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;
|
$this->_errors[] = Tools::displayError('Invalid tax properties.').' '.$error;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user