Fix: Do not show if module disabled
This commit is contained in:
parent
393f407341
commit
1831b46bae
@ -2408,12 +2408,15 @@ abstract class CommonObject
|
|||||||
// To work with non standard path
|
// To work with non standard path
|
||||||
if ($objecttype == 'facture') {
|
if ($objecttype == 'facture') {
|
||||||
$tplpath = 'compta/'.$element;
|
$tplpath = 'compta/'.$element;
|
||||||
|
if (empty($conf->facture->enabled)) continue; // Do not show if module disabled
|
||||||
}
|
}
|
||||||
else if ($objecttype == 'propal') {
|
else if ($objecttype == 'propal') {
|
||||||
$tplpath = 'comm/'.$element;
|
$tplpath = 'comm/'.$element;
|
||||||
|
if (empty($conf->propal->enabled)) continue; // Do not show if module disabled
|
||||||
}
|
}
|
||||||
else if ($objecttype == 'shipping') {
|
else if ($objecttype == 'shipping') {
|
||||||
$tplpath = 'expedition';
|
$tplpath = 'expedition';
|
||||||
|
if (empty($conf->expedition->enabled)) continue; // Do not show if module disabled
|
||||||
}
|
}
|
||||||
else if ($objecttype == 'delivery') {
|
else if ($objecttype == 'delivery') {
|
||||||
$tplpath = 'livraison';
|
$tplpath = 'livraison';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user