CRM-15565 fix - Participent.Get api break for participant_id using IN operator
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 6 Nov 2014 08:06:04 +0000 (13:36 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 6 Nov 2014 08:06:04 +0000 (13:36 +0530)
https://issues.civicrm.org/jira/browse/CRM-15565

CRM/Event/BAO/Query.php

index 3e4873a60288104c4af1b55732dd770b71e3b564..175017c14dea52e5df253ef7b1cd99b1d6fe3c9d 100644 (file)
@@ -417,7 +417,7 @@ class CRM_Event_BAO_Query {
         return;
 
       case 'participant_id':
-        $query->_where[$grouping][] = "civicrm_participant.id $op $value";
+        $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_participant.id", $op, $value, "Integer");
         $query->_tables['civicrm_participant'] = $query->_whereTables['civicrm_participant'] = 1;
         return;