Modif dans select_array, l'affichage de l'id dans le libelle n'est pas
correctement traité en cas d'absence de l'id
This commit is contained in:
parent
d54f469e32
commit
9653cfbd58
@ -331,8 +331,15 @@ class Form {
|
|||||||
while (list($key, $value) = each ($array) )
|
while (list($key, $value) = each ($array) )
|
||||||
{
|
{
|
||||||
print "<option value=\"$key\" ";
|
print "<option value=\"$key\" ";
|
||||||
|
if ($key_libelle)
|
||||||
|
{
|
||||||
|
print ">[$key] $value</option>\n";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
print ">$value</option>\n";
|
print ">$value</option>\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user