Fix: Change of numbering module was not effective

This commit is contained in:
Laurent Destailleur 2009-12-09 14:22:25 +00:00
parent 1a71f873e6
commit c5a4893b7c
2 changed files with 4 additions and 3 deletions

View File

@ -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 *****

View File

@ -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;