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