Add setSearchMetadata to each of the classes that extend CRM_Core_Form_Search
[civicrm-core.git] / CRM / Event / Form / Search.php
index feb9f1db72a5f9372d47fb465d1d9372091503a7..5efeee126270b49d3e0e4719fb9dd1b41f448aab 100644 (file)
@@ -482,4 +482,13 @@ class CRM_Event_Form_Search extends CRM_Core_Form_Search {
     return ts('Find Participants');
   }
 
+  /**
+   * Set the metadata for the form.
+   *
+   * @throws \CiviCRM_API3_Exception
+   */
+  protected function setSearchMetadata() {
+    $this->addSearchFieldMetadata(['Participant' => CRM_Event_BAO_Query::getSearchFieldMetadata()]);
+  }
+
 }