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) { '
| ', - '', + '', ' |