Commit a4710889 authored by tbrehm's avatar tbrehm
Browse files

Select fields obey now the default value from the form settings.

parent 71c0c5bb
......@@ -483,8 +483,7 @@ class tform {
if(is_array($field['value'])) {
$out = '';
foreach($field['value'] as $k => $v) {
//$selected = ($k == $val)?' SELECTED':'';
$selected = '';
$selected = ($k == $field["default"])?' SELECTED':'';
$out .= "<option value='$k'$selected>$v</option>\r\n";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment