From: JKingsnorth <john@johnkingsnorth.co.uk>
Date: Tue, 5 Jul 2016 10:00:59 +0000 (+0100)
Subject: CRM-18186: Participant API filter by registered by id
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=57a56c25877dc26f3548eeb65e1fee454d5de67f;p=civicrm-core.git

CRM-18186: Participant API filter by registered by id
---

diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php
index 16d9ae17bb..7bce9747f7 100644
--- a/CRM/Event/BAO/Query.php
+++ b/CRM/Event/BAO/Query.php
@@ -368,6 +368,7 @@ class CRM_Event_BAO_Query {
       case 'participant_fee_amount':
       case 'participant_fee_level':
       case 'participant_campaign_id':
+      case 'participant_registered_by_id':
 
         $qillName = $name;
         if (in_array($name, array(
@@ -379,6 +380,7 @@ class CRM_Event_BAO_Query {
           'participant_fee_level',
           'participant_is_pay_later',
           'participant_campaign_id',
+          'participant_registered_by_id',
         ))
         ) {
           $name = str_replace('participant_', '', $name);