From 370f6ac857c0b1246242c15a8a276afa429398f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Tue, 30 Jul 2013 10:24:37 +0200 Subject: [PATCH] fixed select_product_fourn_price closes #43 --- htdocs/core/class/html.form.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3dfc1e25d10..fd58b4263b8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1829,7 +1829,7 @@ class Form * @param string $htmlname Name of HTML field * @return void */ - function select_product_fourn_price($productid,$htmlname='productfournpriceid', $showempty=0) + function select_product_fourn_price($productid,$htmlname='productfournpriceid') { global $langs,$conf; @@ -1862,7 +1862,7 @@ class Form } else { - if($showempty && $num > 1) $form.= ''; + $form.= ''; $i = 0; while ($i < $num) @@ -1870,6 +1870,10 @@ class Form $objp = $this->db->fetch_object($result); $opt = '