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:
parent
87efd5bc3c
commit
bcd3f24ab7
@ -473,9 +473,9 @@ class CommandeFournisseur extends Commande
|
|||||||
$modelisok=0;
|
$modelisok=0;
|
||||||
$liste=array();
|
$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))
|
if (is_readable($dir.'/'.$file))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user