diff --git a/htdocs/product/sousproduits/fiche.php b/htdocs/product/sousproduits/fiche.php index 2aecb086e3b..54202fc11c0 100644 --- a/htdocs/product/sousproduits/fiche.php +++ b/htdocs/product/sousproduits/fiche.php @@ -54,7 +54,9 @@ if ($action <> 're-edit') { $product = new Product($db); if ($id) $result = $product->fetch($id); - if ($ref) $result = $product->fetch($ref); + if ($ref) $result = $product->fetch($ref); + if ($_GET["ref"]) $result = $product->fetch('',$_GET["ref"]); + if ($_GET["id"]) $result = $product->fetch($_GET["id"]); } @@ -262,6 +264,15 @@ if ($id || $ref) // Reference print '
| '; + print ''.$product->ref.''; + if ($previous_ref || $next_ref) print ' | '.$previous_ref.' | '.$next_ref.' |