Fix: Le titre de civilité était mal positionné.
This commit is contained in:
parent
d2b1b6660c
commit
1a86509387
@ -384,7 +384,7 @@ class Form
|
|||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
print '<select name="civilite_id">';
|
print '<select name="civilite_id">';
|
||||||
print '<option value="">';
|
print '<option value=""> </option>';
|
||||||
$num = $this->db->num_rows();
|
$num = $this->db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num)
|
if ($num)
|
||||||
@ -392,7 +392,7 @@ class Form
|
|||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object();
|
$obj = $this->db->fetch_object();
|
||||||
if ($selected == $obj->rowid)
|
if ($selected == $obj->code)
|
||||||
{
|
{
|
||||||
print '<option value="'.$obj->code.'" selected>';
|
print '<option value="'.$obj->code.'" selected>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user