From 5759fdae3f406c6aeb04ba474293ca47b3315932 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 19 Feb 2006 17:47:05 +0000 Subject: [PATCH] Ajout navigation next et preview --- htdocs/product/categorie.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 90baec43cd8..6f19162f1d4 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -35,10 +35,10 @@ $types[1] = $langs->trans("Service"); /* * Creation de l'objet produit correspondant à l'id */ -if ($_GET["id"]) +if ($_GET["id"] || $_GET["ref"]) { - $product = new Product($db); - $result = $product->fetch($_GET["id"]); + if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]); + if ($_GET["id"]) $result = $product->fetch($_GET["id"]); } llxHeader("","",$langs->trans("CardProduct0"));