diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 00c514a899f..43727a3a8a8 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -115,6 +115,7 @@ if (! empty($_POST['button_removefilter_x'])) { //orders creation if($action == 'order') { $linecount = GETPOST('linecount', 'int'); + unset($_POST['linecount']); if($linecount > 0) { $suppliers = array(); for($i = 0; $i < $linecount; $i++) { @@ -151,7 +152,9 @@ if($action == 'order') { dol_syslog('replenish.php: '.$error, LOG_ERROR); } $db->free($resql); + unset($_POST['fourn' . $i]); } + unset($_POST[$i]); } //we now know how many orders we need and what lines they have $i = 0; @@ -535,7 +538,7 @@ if ($resql) { $form = new Form($db); print '