diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index a5fc53f4729..a0277f71879 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -86,7 +86,7 @@ if ($_POST["action"] == 'add' && $user->rights->produit->creer) // Action mise a jour d'un produit ou service if ($_POST["action"] == 'update' && $_POST["cancel"] <> $langs->trans("Cancel") && - ( $user->rights->produit->modifier || $user->rights->produit->creer)) + $user->rights->produit->creer) { $product = new Product($db); if ($product->fetch($_POST["id"])) @@ -140,8 +140,7 @@ if ($_POST["action"] == 'addinpropal') } -if ($_POST["action"] == 'addinfacture' && - ( $user->rights->facture->modifier || $user->rights->facture->creer)) +if ($_POST["action"] == 'addinfacture' && $user->rights->facture->creer) { $product = new Product($db); $result = $product->fetch($_GET["id"]); @@ -195,8 +194,7 @@ if ($_GET["action"] == 'remove_fourn') if ($_POST["action"] == 'update_price' && - $_POST["cancel"] <> $langs->trans("Cancel") && - ( $user->rights->produit->modifier || $user->rights->produit->creer)) + $_POST["cancel"] <> $langs->trans("Cancel") && $user->rights->produit->creer) { $product = new Product($db); @@ -401,11 +399,11 @@ else if ( $db->query($sql) ) { - $num = $db->num_rows(); + $num_fournisseur = $db->num_rows(); $i = 0; print '