CRM-15963: fix event title filter
authoryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 13 Feb 2015 07:43:16 +0000 (13:13 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Fri, 13 Feb 2015 07:43:16 +0000 (13:13 +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 9b58b58c282282861aff19fbec108bd9756630d7..5298208350b4815636ed0b1c1688f5cf99a85c8e 100644 (file)
@@ -260,12 +260,6 @@ 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
@@ -384,10 +378,11 @@ class CRM_Event_BAO_Query {
         $name = str_replace('participant_', '', $name);
       case 'event_is_public':
       case 'event_type_id':
-
+      case 'event_title':
         $qillName = $name;
         if (in_array($name, array(
               'event_id',
+              'event_title',
               'event_is_public',
             )
           )) {