CRM-15963: fix event title filter
authoryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 13 Feb 2015 07:09:55 +0000 (12:39 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 13 Feb 2015 07:09:55 +0000 (12:39 +0530)
----------------------------------------
* CRM-15963: Event_title can't be filtered with the search builder
  https://issues.civicrm.org/jira/browse/CRM-15963

CRM/Event/BAO/Query.php

index 6137a052487f38113af5aa8275ac844ca4fc8a3f..9b58b58c282282861aff19fbec108bd9756630d7 100644 (file)
@@ -260,6 +260,12 @@ class CRM_Event_BAO_Query {
         );
         return;
 
+      case 'event_title':
+        $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause('civicrm_event.title', $op, $value, 'String');
+        $query->_qill[$grouping][] = ts('Event Title') . " $op '{$value}'";
+        $query->_tables['civicrm_event'] = $query->_whereTables['civicrm_event'] = 1;
+        return;
+
       case 'event_include_repeating_events':
         /**
          * Include Repeating Events