Skip to content

Commit 43ce66d

Browse files
committed
Fixed a bug in graphical true / false list icon implementation.
1 parent 94890d7 commit 43ce66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/listform_actions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public function prepareDataRow($rec)
9696
foreach($app->listform->listDef['item'] as $field) {
9797
$key = $field['field'];
9898
if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
99-
if($rec[$key] == 'y' or $rec[$key] == 'n') {
99+
if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
100100
// Set a additional image variable for bolean fields
101-
$rec['_'.$key.'_'] = ($rec[$key] == 'y')?'list_icon_true.png':'list_icon_false.png';
101+
$rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
102102
}
103103
//* substitute value for select field
104104
$rec[$key] = @$field['value'][$rec[$key]];

0 commit comments

Comments
 (0)