FIX config is override by multicompany module

This commit is contained in:
Regis Houssin 2018-11-14 16:44:10 +01:00
parent 874e27ef84
commit 0592e8a31c

View File

@ -3429,13 +3429,7 @@ class Propal extends CommonObject
global $conf,$langs;
$langs->load("propal");
$constant = 'PROPALE_ADDON_'.$this->entity;
if (! empty($conf->global->$constant)) {
$classname = $conf->global->$constant; // for multicompany proposal sharing
} else {
$classname = $conf->global->PROPALE_ADDON;
}
$classname = $conf->global->PROPALE_ADDON;
if (! empty($classname))
{