tbrehm
2008-05-28 43ce66dc8b573dd117b5e9e47b1ade46ace52982
Fixed a bug in graphical true / false list icon implementation.
1 files modified
4 ■■■■ changed files
interface/lib/classes/listform_actions.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/classes/listform_actions.inc.php
@@ -96,9 +96,9 @@
        foreach($app->listform->listDef['item'] as $field) {
            $key = $field['field'];
            if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
                if($rec[$key] == 'y' or $rec[$key] == 'n') {
                if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {
                    // Set a additional image variable for bolean fields
                    $rec['_'.$key.'_'] = ($rec[$key] == 'y')?'list_icon_true.png':'list_icon_false.png';
                    $rec['_'.$key.'_'] = (strtolower($rec[$key]) == 'y')?'list_icon_true.png':'list_icon_false.png';
                }
                //* substitute value for select field
                $rec[$key] = @$field['value'][$rec[$key]];