Fix: avertir qu'on doit activer des codes barres
This commit is contained in:
parent
e1ec9a99ec
commit
3f90da2deb
@ -3556,18 +3556,18 @@ class Form
|
||||
$result = $this->db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
|
||||
$num = $this->db->num_rows($result);
|
||||
$i = 0;
|
||||
|
||||
if ($useempty && $num > 0)
|
||||
{
|
||||
print '<select class="flat" name="'.$htmlname.'">';
|
||||
print '<option value="0"> </option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<option value="0" disabled="disabled" selected="true">'.$langs->trans('NoActivatedBarcode').'</option>';
|
||||
print '<select disabled="disabled" class="flat" name="'.$htmlname.'">';
|
||||
print '<option value="0" selected="true">'.$langs->trans('NoActivatedBarcode').'</option>';
|
||||
}
|
||||
|
||||
while ($i < $num)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user