Skip to content

Commit

Permalink
Fix: Do not show if module disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 17, 2012
1 parent 393f407 commit 1831b46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -2408,12 +2408,15 @@ function showLinkedObjectBlock($hookmanager=false)
// To work with non standard path
if ($objecttype == 'facture') {
$tplpath = 'compta/'.$element;
if (empty($conf->facture->enabled)) continue; // Do not show if module disabled
}
else if ($objecttype == 'propal') {
$tplpath = 'comm/'.$element;
if (empty($conf->propal->enabled)) continue; // Do not show if module disabled
}
else if ($objecttype == 'shipping') {
$tplpath = 'expedition';
if (empty($conf->expedition->enabled)) continue; // Do not show if module disabled
}
else if ($objecttype == 'delivery') {
$tplpath = 'livraison';
Expand Down

0 comments on commit 1831b46

Please sign in to comment.