Skip to content

Commit

Permalink
Debug v20 - fix param for filter on boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 16, 2024
1 parent daa883d commit 791741c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion htdocs/core/tpl/extrafields_list_search_param.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@
$param .= '&'.$search_options_pattern.$tmpkey.'[]='.urlencode($val2);
}
} else {
// test if we have checkbox type , we add the _multiselect needed into param
// test if we have checkbox type, we add the _multiselect needed into param
$tmpkey = preg_replace('/'.$search_options_pattern.'/', '', $key);
if (in_array($extrafields->attributes[$extrafieldsobjectkey]['type'][$tmpkey], array('checkbox', 'chkbxlst'))) {
$param .= '&'.$search_options_pattern.$tmpkey.'_multiselect='.urlencode($val);
}
// test if we have boolean type, we add the _booleand needed into param
if (in_array($extrafields->attributes[$extrafieldsobjectkey]['type'][$tmpkey], array('boolean'))) {
$param .= '&'.$search_options_pattern.$tmpkey.'_boolean='.urlencode($val);
}

$param .= '&'.$search_options_pattern.$tmpkey.'='.urlencode($val);
}
Expand Down

0 comments on commit 791741c

Please sign in to comment.