Fix: le champ vide de la liste déroulante était à 1 ce qui pouvait attribuer un contact invalide
This commit is contained in:
parent
00014d910e
commit
f44a0db145
@ -819,7 +819,7 @@ class Form
|
|||||||
if ($num == 0) return 0;
|
if ($num == 0) return 0;
|
||||||
|
|
||||||
if ($htmlname != 'none') print '<select class="flat" name="'.$htmlname.'">';
|
if ($htmlname != 'none') print '<select class="flat" name="'.$htmlname.'">';
|
||||||
if ($showempty) print '<option value="1"> </option>';
|
if ($showempty) print '<option value="0"> </option>';
|
||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num)
|
if ($num)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user