From 9e1d5fcb643b28fdb30c17476380116c3f8ea961 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 25 May 2015 12:43:57 -0400 Subject: [PATCH] CRM-16477 - Additional backwards compatibility for report instances pre-dating 4.5 --- CRM/Report/Form/Event/IncomeCountSummary.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Event/IncomeCountSummary.php b/CRM/Report/Form/Event/IncomeCountSummary.php index 11de942287..8dbbe06fc2 100644 --- a/CRM/Report/Form/Event/IncomeCountSummary.php +++ b/CRM/Report/Form/Event/IncomeCountSummary.php @@ -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)) { -- 2.25.1