From 490e8798ccd397585feb17cb4cc47c4257c7ec49 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 26 Nov 2004 17:15:00 +0000 Subject: [PATCH] Bugfix --- htdocs/product/fiche.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 4ff7806d1b4..f97ffa287a0 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -49,9 +49,10 @@ $types[0] = $langs->trans("Product"); $types[1] = $langs->trans("Service"); -if ($_GET["action"] == 'fastappro' && $user->rights->facture->creer) +if ($_GET["action"] == 'fastappro') { $product = new Product($db); + $product->fetch($_GET["id"]); $result = $product->fastappro(); Header("Location: fiche.php?id=".$_GET["id"]); }