From 83b6e4c9c0af67c5d3fc1d0c9b3275e2e0cc1b5b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 24 Aug 2006 00:27:26 +0000 Subject: [PATCH] Pb mise a jour note --- htdocs/product/fiche.php | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 80853c8a0c5..aa92c461384 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -488,25 +488,23 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer) if ($_GET["id"] || $_GET["ref"]) { - if ($_GET["action"] <> 're-edit') - { - $product = new Product($db); - if ($_GET["ref"]) - { - $result = $product->fetch('',$_GET["ref"]); - $_GET["id"] = $product->id; - } - elseif ($_GET["id"]) - { - $result = $product->fetch($_GET["id"]); - } - llxHeader("","",$langs->trans("CardProduct".$product->type)); - } + llxHeader("","",$langs->trans("CardProduct".$product->type)); + + $product = new Product($db); + if ($_GET["ref"]) + { + $result = $product->fetch('',$_GET["ref"]); + $_GET["id"] = $product->id; + } + elseif ($_GET["id"]) + { + $result = $product->fetch($_GET["id"]); + } if ( $result ) { - if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit') + if ($_GET["action"] <> 'edit') { /* * En mode visu @@ -640,7 +638,7 @@ if ($_GET["id"] || $_GET["ref"]) /* * Fiche en mode edition */ - if (($_GET["action"] == 'edit' || $_GET["action"] == 're-edit') && $user->rights->produit->creer) + if ($_GET["action"] == 'edit' && $user->rights->produit->creer) { print_fiche_titre($langs->trans('Edit').' '.$types[$product->type].' : '.$product->ref, ""); @@ -695,7 +693,7 @@ if ($_GET["id"] || $_GET["ref"]) } else { - print '"; } @@ -727,8 +725,8 @@ if ($_GET["id"] || $_GET["ref"]) } else { - print '"; } print "";