CRM-16477: Added backwards compatibility for report instances pre-dating 4.5.
authorFrank J. Gómez <frank@ginkgostreet.com>
Fri, 8 May 2015 01:11:45 +0000 (21:11 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Fri, 8 May 2015 01:33:22 +0000 (21:33 -0400)
CRM/Report/Form/Event/Summary.php

index b27c8b69b07f4b6d03ee47b7db04db4013dc5fd6..fde7c4a8223fa6436433a4bdd42717ba13dd0a12 100644 (file)
@@ -162,7 +162,8 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
             }
           }
           if (!empty($this->_params['id_value'])) {
-            $this->_participantWhere = " AND civicrm_participant.event_id IN ( {$this->_params['id_value']} ) ";
+            $id_value = is_array($this->_params['id_value']) ? implode(',', $this->_params['id_value']) : $this->_params['id_value'];
+            $this->_participantWhere = " AND civicrm_participant.event_id IN ( {$id_value} ) ";
           }
 
           if (!empty($clause)) {