From e588ea2714db6c4e6e307590bbbf5ca6e306f8ef Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 16 Feb 2015 13:05:24 +0100 Subject: [PATCH] Fix filter expression handling when lowering to achieve case-insensitivity fixes #8435 --- .../library/Monitoring/Backend/Ido/Query/IdoQuery.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php index a2c757800..c87025fdd 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php @@ -290,7 +290,12 @@ abstract class IdoQuery extends DbQuery && strpos($filter->getColumn(), 'LOWER') !== 0 ) { $filter->setColumn('LOWER(' . $filter->getColumn() . ')'); - $filter->setExpression(strtolower($filter->getExpression())); + $expression = $filter->getExpression(); + if (is_array($expression)) { + $filter->setExpression(array_map('strtolower', $expression)); + } else { + $filter->setExpression(strtolower($expression)); + } } } else { foreach ($filter->filters() as $chainedFilter) {