Fix: text for empty line not visible in select

This commit is contained in:
Laurent Destailleur 2019-01-30 20:01:55 +01:00
parent 2882f45bca
commit 200d30f2b9

View File

@ -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.='<option value="0" selected>'.$textifempty.'</option>';
$i = 0;