CRM-16477 - Additional backwards compatibility for report instances pre-dating 4.5
authorColeman Watts <coleman@civicrm.org>
Mon, 25 May 2015 16:43:57 +0000 (12:43 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 25 May 2015 16:43:57 +0000 (12:43 -0400)
CRM/Report/Form/Event/IncomeCountSummary.php

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