From 16df3fba55ad3b7d186db1b9a2a864af699df448 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 7 Apr 2006 12:58:41 +0000 Subject: [PATCH] =?UTF-8?q?ajout=20d'un=20bouton=20supprimer=20sur=20la=20?= =?UTF-8?q?fiche=20produit=20uniquement=20accessible=20si=20le=20produit?= =?UTF-8?q?=20=20n'a=20jamais=20=E9t=E9=20utilis=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/fiche.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 23497e8cb0a..372ea3aea56 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -744,10 +744,9 @@ if ($_GET["action"] == '') print ''.$langs->trans("CreateCopy").''; } - if ($product->verif_prod_use($id)) - { - $prod_use = $product->verif_prod_use($id); - } + + $product = new Product($db); + $prod_use = $product->verif_prod_use($id); if ($user->rights->produit->supprimer && $prod_use == 0) {