From 8517706ec244111df008775a892e09999ebcbc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Tue, 11 Jun 2013 15:55:43 +0200 Subject: [PATCH] typo --- htdocs/product/stock/replenish.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ''; print $form->select_product_fourn_price($prod->id, - "fourn".$i); + 'fourn' . $i); print ''; print ' '; print "";