From b58297a791f900043b750fc08c610a9fed81ea79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Wed, 4 Sep 2013 10:55:10 +0200 Subject: [PATCH] fixed warning showing up when searching --- htdocs/product/stock/replenish.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index fb24b525cdb..7eed3f2b13b 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -66,9 +66,15 @@ $offset = $limit * $page ; * Actions */ +if (isset($_POST['button_removefilter'])) { + $sref = ''; + $snom = ''; + $sal = ''; +} + //orders creation //FIXME: could go in the lib -if ($action == 'order') { +if ($action == 'order' && isset($_POST['valid'])) { $linecount = GETPOST('linecount', 'int'); $box = 0; unset($_POST['linecount']); @@ -358,6 +364,8 @@ if ($resql) { '', '', + '', '', ''; @@ -482,7 +490,7 @@ if ($resql) { '', '', '
', - '', + '', '
', '';