Le titre Produit/Service affiche Produit, Service ou les 2 selon l'tat d'activatin des modules.
This commit is contained in:
parent
bf8b757684
commit
6509ab45da
@ -101,9 +101,13 @@ else
|
||||
}
|
||||
|
||||
print '<TD width="15%" class="'.$class.'" align="center">';
|
||||
if ($conf->produit->enabled )
|
||||
if ($conf->produit->enabled || $conf->service->enabled)
|
||||
{
|
||||
print '<A class="'.$class.'" href="'.DOL_URL_ROOT.'/product/?type=0">Produits</a>';
|
||||
$chaine="";
|
||||
if ($conf->produit->enabled) { $chaine.="Produits"; }
|
||||
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
|
||||
if ($conf->service->enabled) { $chaine.="Services"; }
|
||||
print '<A class="'.$class.'" href="'.DOL_URL_ROOT.'/product/?type=0">'.$chaine.'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user