diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index e72d871fd86..d8432da820f 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -605,7 +605,7 @@ if ($_POST["action"] == 'addinfacture' && $user->rights->facture->creer) if ($_POST["cancel"] == $langs->trans("Cancel")) { $action = ''; - Header("Location: fiche.php?id=".$_POST["id"]); + Header("Location: ".$_SERVER["PHP_SELF"]."?id=".$_POST["id"]); exit; } @@ -765,10 +765,10 @@ if ($_GET["action"] == '') if ($user->rights->produit->creer || $user->rights->service->creer) { if ($product->no_button_edit <> 1) - print ''.$langs->trans("Modify").''; + print 'id.'">'.$langs->trans("Modify").''; if ($product->no_button_copy <> 1) - print ''.$langs->trans("ToClone").''; + print 'id.'">'.$langs->trans("ToClone").''; } $product_is_used = $product->verif_prod_use($product->id); @@ -776,7 +776,7 @@ if ($_GET["action"] == '') { if (! $product_is_used && $product->no_button_delete <> 1) { - print ''.$langs->trans("Delete").''; + print 'id.'">'.$langs->trans("Delete").''; } else { @@ -846,7 +846,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) { $objp = $db->fetch_object($result); $var=!$var; - print '
'; + print ''; print ''; print ''; print ""; @@ -884,7 +884,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) $var=true; $otherprop = $propal->liste_array(1, ' <> '.$user->id); - print ''; + print ''; print ''; print ''; if (is_array($otherprop) && sizeof($otherprop)) @@ -964,7 +964,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) { $objc = $db->fetch_object($result); $var=!$var; - print ''; + print ''; print ''; print ''; print ""; @@ -1003,7 +1003,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) $var=true; $othercom = $commande->liste_array(1, ' <> '.$user->id); - print ''; + print ''; print ''; print '
'; if (is_array($othercom) && sizeof($othercom)) @@ -1077,7 +1077,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) { $objp = $db->fetch_object($result); $var=!$var; - print ''; + print ''; print ''; print ''; print ""; @@ -1139,7 +1139,7 @@ if ($product->id && $_GET["action"] == '' && $product->status) $objp = $db->fetch_object($result); $var=!$var; - print ''; + print ''; print ''; print ''; print "";