diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6983865eac9..d908e243dfa 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1860,15 +1860,9 @@ class Form { $form.= '-- '.$langs->trans("NoSupplierPriceDefinedForThisProduct").' --'; } - else if ($num == 1) { - $objp = $this->db->fetch_object($result); - $form = $objp->nom; - $form .= ''; - } else { - $form = ''; - if($showempty) $form.= ' '; + if($showempty && $num > 1) $form.= ' '; $i = 0; while ($i < $num) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 058f7e2e1ff..a4d2d2b96d2 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -564,7 +564,7 @@ if ($resql) { $form = new Form($db); print ''; print $form->select_product_fourn_price($prod->id, - 'fourn' . $i); + 'fourn' . $i, 1); print ''; print ' '; print "";