FIX config is override by multicompany module
This commit is contained in:
parent
874e27ef84
commit
0592e8a31c
@ -3429,13 +3429,7 @@ class Propal extends CommonObject
|
|||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
|
|
||||||
$constant = 'PROPALE_ADDON_'.$this->entity;
|
$classname = $conf->global->PROPALE_ADDON;
|
||||||
|
|
||||||
if (! empty($conf->global->$constant)) {
|
|
||||||
$classname = $conf->global->$constant; // for multicompany proposal sharing
|
|
||||||
} else {
|
|
||||||
$classname = $conf->global->PROPALE_ADDON;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! empty($classname))
|
if (! empty($classname))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user