Skip to content

Commit ee034dd

Browse files
committed
Handler mixed-case situations
1 parent 6e8ad3d commit ee034dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/listform_actions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function prepareDataRow($rec)
189189
//* substitute value for select fields
190190
if(is_array($app->listform->listDef['item']) && count($app->listform->listDef['item']) > 0) {
191191
foreach($app->listform->listDef['item'] as $field) {
192-
if(isset($rec['active']) && $rec['active'] == 'n') $rec['warn_inactive'] = 'y';
192+
if(isset($rec['active']) && strtolower($rec['active']) == 'n') $rec['warn_inactive'] = 'y';
193193
$key = $field['field'];
194194
if(isset($field['formtype']) && $field['formtype'] == 'SELECT') {
195195
if(strtolower($rec[$key]) == 'y' or strtolower($rec[$key]) == 'n') {

0 commit comments

Comments
 (0)