Suppression de l'ajout de l'onglet fournisseur qui y était déjà (du coup, l'onglet se retrouve en double). L'onglet fournisseur s'affiche si le module fournisseur est actif.

This commit is contained in:
Laurent Destailleur 2005-02-17 23:55:15 +00:00
parent a5ec11d153
commit f600204a17

View File

@ -104,38 +104,35 @@ if ($_GET["id"])
if ( $product->fetch($_GET["id"])) if ( $product->fetch($_GET["id"]))
{ {
$h=0; $h=0;
$head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/fiche.php?id=".$product->id;
$head[$h][1] = $langs->trans("Card"); $head[$h][1] = $langs->trans("Card");
$h++; $h++;
$head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/price.php?id=".$product->id;
$head[$h][1] = $langs->trans("Price"); $head[$h][1] = $langs->trans("Price");
$h++; $h++;
if($product->type == 0) if($product->type == 0)
{ {
$head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id;
$head[$h][1] = $langs->trans("Stock"); $head[$h][1] = $langs->trans("Stock");
$hselected=$h; $hselected=$h;
$h++; $h++;
}
$head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; if ($conf->fournisseur->enabled) {
$head[$h][1] = 'Fournisseurs'; $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id;
$h++; $head[$h][1] = $langs->trans("Suppliers");
} $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."/product/stats/fiche.php?id=".$product->id; $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id;
$head[$h][1] = $langs->trans("Statistics"); $head[$h][1] = $langs->trans("Statistics");
$h++; $h++;
dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref); dolibarr_fiche_head($head, $hselected, $langs->trans("CardProduct".$product->type).' : '.$product->ref);
print($mesg); print($mesg);