From 80908e0a6f0c310cc9d95fbd87e3c989c3ff6620 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 13 Jun 2013 16:34:34 +0200 Subject: [PATCH] [-] MO : do not check the VAT number if the module is disabled #PSCFV-9397 --- classes/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Address.php b/classes/Address.php index 01a227232..cb1fef134 100644 --- a/classes/Address.php +++ b/classes/Address.php @@ -222,7 +222,7 @@ class AddressCore extends ObjectModel public function validateController($htmlentities = true) { $errors = parent::validateController($htmlentities); - if (!Configuration::get('VATNUMBER_CHECKING')) + if (!Configuration::get('VATNUMBER_MANAGEMENT') || !Configuration::get('VATNUMBER_CHECKING')) return $errors; include_once(_PS_MODULE_DIR_.'vatnumber/vatnumber.php'); if (class_exists('VatNumber', false))