From 6a51f5f87a921cea019e3f29ce95fecdf6f86e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 4 Sep 2013 10:26:00 +0200 Subject: [PATCH] don't jump to the product card when there's only one research result --- htdocs/product/stock/replenish.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 6b442f763f7..fb24b525cdb 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -199,11 +199,6 @@ $resql = $db->query($sql); if ($resql) { $num = $db->num_rows($resql); $i = 0; - if ($num == 1 && ($sall or $snom or $sref)) { - $objp = $db->fetch_object($resql); - header('Location: ../fiche.php?id=' . $objp->rowid); - exit; - } $helpurl = 'EN:Module_Stocks_En|FR:Module_Stock|'; $helpurl .= 'ES:Módulo_Stocks';