From 1a94620cd5f8898cd7b74d2ef130350ae50bcaaa Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 10 Mar 2023 12:07:38 +0530 Subject: [PATCH] (dev/core#4176) Allow to search on participant id --- CRM/Event/BAO/Query.php | 1 + templates/CRM/Event/Form/Search/Common.tpl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index 4b5e7c18f1..5dbb6952a4 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -639,6 +639,7 @@ class CRM_Event_BAO_Query extends CRM_Core_BAO_Query { $form->addRule('participant_fee_amount_low', ts('Please enter a valid money value.'), 'money'); $form->addRule('participant_fee_amount_high', ts('Please enter a valid money value.'), 'money'); + $form->add('number', 'participant_id', ts('Participant ID'), ['class' => 'four', 'min' => 1]); self::addCustomFormFields($form, ['Participant', 'Event']); diff --git a/templates/CRM/Event/Form/Search/Common.tpl b/templates/CRM/Event/Form/Search/Common.tpl index 1081d1e137..a96d6b2ec7 100644 --- a/templates/CRM/Event/Form/Search/Common.tpl +++ b/templates/CRM/Event/Form/Search/Common.tpl @@ -50,6 +50,9 @@ {$form.participant_fee_amount_high.label}   {$form.participant_fee_amount_high.html} + + {$form.participant_id.html} + {* campaign in contribution search *} {include file="CRM/Campaign/Form/addCampaignToSearch.tpl" -- 2.25.1