Skip to content

Commit a471088

Browse files
committed
Select fields obey now the default value from the form settings.
1 parent 71c0c5b commit a471088

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ function getHTML($record, $tab, $action = 'NEW') {
483483
if(is_array($field['value'])) {
484484
$out = '';
485485
foreach($field['value'] as $k => $v) {
486-
//$selected = ($k == $val)?' SELECTED':'';
487-
$selected = '';
486+
$selected = ($k == $field["default"])?' SELECTED':'';
488487
$out .= "<option value='$k'$selected>$v</option>\r\n";
489488
}
490489
}

0 commit comments

Comments
 (0)