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"]); }