From d12de91cf2e8fa5ab936b5654cbeb917d75d8a2e Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 26 Apr 2013 17:58:06 +1200 Subject: [PATCH] CRM-12432 allow filters to be marked to be skipped by the where clause constructor --- CRM/Report/Form.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 6e69bb9fe4..09db8956bc 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1836,6 +1836,11 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND foreach ($this->_columns as $tableName => $table) { if (array_key_exists('filters', $table)) { foreach ($table['filters'] as $fieldName => $field) { + // respect pseudofield to filter spec so fields can be marked as + // not to be handled here + if(!empty($field['pseudofield'])){ + continue; + } $clause = NULL; if (CRM_Utils_Array::value('type', $field) & CRM_Utils_Type::T_DATE) { if (CRM_Utils_Array::value('operatorType', $field) == CRM_Report_Form::OP_MONTH) { -- 2.25.1