diff --git a/htdocs/fourn/product/fiche.php b/htdocs/fourn/product/fiche.php index e562a312366..ff226216f35 100644 --- a/htdocs/fourn/product/fiche.php +++ b/htdocs/fourn/product/fiche.php @@ -316,13 +316,6 @@ else $h++; } - if ($conf->fournisseur->enabled) - { - $head[$h][0] = DOL_URL_ROOT."/fourn/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = $langs->trans("Suppliers"); - $h++; - } - } $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id; diff --git a/htdocs/fourn/product/photos.php b/htdocs/fourn/product/photos.php index fc4482c0a00..0190c7d4f3c 100644 --- a/htdocs/fourn/product/photos.php +++ b/htdocs/fourn/product/photos.php @@ -85,18 +85,22 @@ if ($_GET["id"]) $head[$h][1] = $langs->trans("Stock"); $h++; } - - if ($conf->fournisseur->enabled) - { - $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = $langs->trans("Suppliers"); - $h++; - } - + $head[$h][0] = DOL_URL_ROOT."/fourn/product/photos.php?id=".$product->id; $head[$h][1] = $langs->trans("Photos"); $hselected = $h; $h++; + + //Affichage onglet Catégories + if ($conf->categorie->enabled){ + $head[$h][0] = DOL_URL_ROOT."/fourn/product/categorie.php?id=".$product->id; + $head[$h][1] = $langs->trans('Categories'); + $h++; + } + + $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans("CommercialCard"); + $h++; dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);