CRM-15851 search builder fix for custom date fields
[civicrm-core.git] / CRM / Event / BAO / Query.php
index 4485a06a86aa9538d2ea75e97a67fdc47288ac26..c9d64bedd98915bce145bfd2de9668323040746d 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
@@ -24,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -381,7 +380,11 @@ class CRM_Event_BAO_Query {
       case 'event_type_id':
 
         $qillName = $name;
-        if (in_array($name, array('event_id',  'event_is_public'))) {
+        if (in_array($name, array(
+              'event_id',
+              'event_is_public',
+            )
+          )) {
           $name = str_replace('event_', '', $name);
         }
         $dataType = !empty($fields[$qillName]['type']) ? CRM_Utils_Type::typeToString($fields[$qillName]['type']) : 'String';
@@ -468,7 +471,7 @@ class CRM_Event_BAO_Query {
    *
    * @return array|null
    */
-  static function defaultReturnProperties(
+  public  static function defaultReturnProperties(
     $mode,
     $includeCustomFields = TRUE
   ) {
@@ -600,4 +603,5 @@ class CRM_Event_BAO_Query {
       $tables = array_merge(array('civicrm_participant' => 1), $tables);
     }
   }
+
 }