From 1b2f8a8cca5851411052f3f7fe12366b2d869cb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Thu, 7 May 2015 21:11:45 -0400 Subject: [PATCH] CRM-16477: Added backwards compatibility for report instances pre-dating 4.5. --- CRM/Report/Form/Event/Summary.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Event/Summary.php b/CRM/Report/Form/Event/Summary.php index b27c8b69b0..fde7c4a822 100644 --- a/CRM/Report/Form/Event/Summary.php +++ b/CRM/Report/Form/Event/Summary.php @@ -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)) { -- 2.25.1