mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 16:12:39 +01:00
Fix: We must use conf->global instead of constant. If not and constant is defined twice (with 2 differents entity values), we use the wrong one.
This commit is contained in:
@@ -473,9 +473,9 @@ class CommandeFournisseur extends Commande
|
||||
$modelisok=0;
|
||||
$liste=array();
|
||||
|
||||
if (defined('COMMANDE_SUPPLIER_ADDON') && COMMANDE_SUPPLIER_ADDON)
|
||||
if (! empty($conf->global->COMMANDE_SUPPLIER_ADDON))
|
||||
{
|
||||
$file = COMMANDE_SUPPLIER_ADDON.'.php';
|
||||
$file = $conf->global->COMMANDE_SUPPLIER_ADDON.'.php';
|
||||
|
||||
if (is_readable($dir.'/'.$file))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user