Inversion du test qui buggait dans selectyesno
This commit is contained in:
parent
6705ecf6b2
commit
8fe4989ab4
@ -843,16 +843,16 @@ class Form
|
|||||||
|
|
||||||
print '<select name="'.$name.'">';
|
print '<select name="'.$name.'">';
|
||||||
|
|
||||||
if ($value == 'yes' || $value == 1)
|
if ($value == 'no' || $value == 0)
|
||||||
{
|
|
||||||
print '<option value="'.$yes.'" selected>'.$langs->trans("yes").'</option>';
|
|
||||||
print '<option value="'.$no.'">'.$langs->trans("no").'</option>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
print '<option value="'.$yes.'">'.$langs->trans("yes").'</option>';
|
print '<option value="'.$yes.'">'.$langs->trans("yes").'</option>';
|
||||||
print '<option value="'.$no.'" selected>'.$langs->trans("no").'</option>';
|
print '<option value="'.$no.'" selected>'.$langs->trans("no").'</option>';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<option value="'.$yes.'" selected>'.$langs->trans("yes").'</option>';
|
||||||
|
print '<option value="'.$no.'">'.$langs->trans("no").'</option>';
|
||||||
|
}
|
||||||
print '</select>';
|
print '</select>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user