Modif $head=product_prepare_head($product, $user);

This commit is contained in:
Rodolphe Quiedeville 2007-01-02 15:22:22 +00:00
parent 5e4701b28e
commit bd53417ca3

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
* Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -39,11 +40,9 @@ $user->getrights('produit');
if (!$user->rights->produit->lire)
accessforbidden();
$types[0] = $langs->trans("Product");
$types[1] = $langs->trans("Service");
/*
* Actions
*/
@ -139,7 +138,7 @@ if ($_GET["id"]) $result = $product->fetch($_GET["id"]);
llxHeader("","",$langs->trans("Translation"));
$head=product_prepare_head($product);
$head=product_prepare_head($product, $user);
$titre=$langs->trans("CardProduct".$product->type);
if ( $_GET["action"] != 'edit') dolibarr_fiche_head($head, 'translation', $titre);