diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 68edd564020..9401dce5622 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -2004,7 +2004,7 @@ class Form
}
else
{
- print $this->select_produits_list($selected,$htmlname,$filtertype,$limit,$price_level,'',$status,$finished,0,$socid,$showempty,$forcecombo,$morecss,$hidepriceinlabel, $warehouseStatus);
+ print $this->select_produits_list($selected, $htmlname, $filtertype, $limit, $price_level, '', $status, $finished, 0, $socid, $showempty, $forcecombo, $morecss, $hidepriceinlabel, $warehouseStatus);
}
}
@@ -2225,6 +2225,10 @@ class Form
if ($showempty && ! is_numeric($showempty)) $textifempty=$langs->trans($showempty);
else $textifempty.=$langs->trans("All");
}
+ else
+ {
+ if ($showempty && ! is_numeric($showempty)) $textifempty=$langs->trans($showempty);
+ }
if ($showempty) $out.='';
$i = 0;