diff --git a/ChangeLog b/ChangeLog index ccb7820d093..1083ec06979 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ For users: - New: VAT number is stored in one field. This is more "international". - Fix: bug #28055 : Unable to modify the date of a cloned command - Fix: bug #27891 +- Fix: Change of numbering module was not effective ***** ChangeLog for 2.7 compared to 2.6 ***** diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 1a722fb62be..e48be24fe4f 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -2169,10 +2169,10 @@ class Facture extends CommonObject global $conf, $db, $langs; $langs->load("bills"); - if (defined("FACTURE_ADDON") && FACTURE_ADDON) + if (! empty($conf->global->FACTURE_ADDON)) { - $file = FACTURE_ADDON."/".FACTURE_ADDON.".modules.php"; - $classname = "mod_facture_".FACTURE_ADDON; + $file = $conf->global->FACTURE_ADDON."/".$conf->global->FACTURE_ADDON.".modules.php"; + $classname = "mod_facture_".$conf->global->FACTURE_ADDON; // Include file with class $mybool=false;