Fix selected attribute not set correctly
This commit is contained in:
parent
37c216cfe4
commit
7ef11b2f38
@ -4303,7 +4303,7 @@ class Form
|
||||
}
|
||||
else
|
||||
{
|
||||
$selected=($useempty?'':' selected="selected"');
|
||||
$selected=(($useempty && $value != '0' && $value != 'no')?'':' selected="selected"');
|
||||
$resultyesno .= '<option value="'.$yes.'">'.$langs->trans("Yes").'</option>'."\n";
|
||||
$resultyesno .= '<option value="'.$no.'"'.$selected.'>'.$langs->trans("No").'</option>'."\n";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user