CRM-12432 allow filters to be marked to be skipped by the where clause constructor
authoreileen <eileen@fuzion.co.nz>
Fri, 26 Apr 2013 05:58:06 +0000 (17:58 +1200)
committereileen <eileen@fuzion.co.nz>
Wed, 8 May 2013 23:24:59 +0000 (11:24 +1200)
CRM/Report/Form.php

index 6e69bb9fe4e2043239fef02e8c6ba1ee263d7cf2..09db8956bc80b055fcbc6b8ab3f0e339b42519f4 100644 (file)
@@ -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) {