[-] MO : do not check the VAT number if the module is disabled #PSCFV-9397

This commit is contained in:
Damien Metzger
2013-06-13 16:34:34 +02:00
parent be0d6f1c6c
commit 80908e0a6f
+1 -1
View File
@@ -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))