diff --git a/htdocs/comm/pre.inc.php b/htdocs/comm/pre.inc.php index 451eb4bcbe9..52de522588b 100644 --- a/htdocs/comm/pre.inc.php +++ b/htdocs/comm/pre.inc.php @@ -69,7 +69,7 @@ function llxHeader($head = "", $urlp = "") { if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } if ($conf->service->enabled) { $chaine.="Services"; } - $menu->add(DOL_URL_ROOT."/product/index.php", "Produits/Services"); + $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); } if ($conf->projet->enabled ) diff --git a/htdocs/pre.inc.php b/htdocs/pre.inc.php index 6c0ad924ac9..ec50a9212e6 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -69,9 +69,13 @@ function llxHeader($head = "") { $menu->add(DOL_URL_ROOT."/fichinter/index.php", "Fiches d'intervention"); } - if ($conf->produit->enabled ) + if ($conf->produit->enabled || $conf->service->enabled) { - $menu->add(DOL_URL_ROOT."/product/index.php", "Produits"); + $chaine=""; + if ($conf->produit->enabled) { $chaine.="Produits"; } + if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } + if ($conf->service->enabled) { $chaine.="Services"; } + $menu->add(DOL_URL_ROOT."/product/index.php", "$chaine"); if ($conf->boutique->enabled) {