From: Eileen Date: Wed, 19 Feb 2014 09:10:04 +0000 (+1300) Subject: CRM-14246 - event on behalf - alter function that assigns events to cope with string... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cc57909ab421feffada2cf4e2186d3b58a7ddc42;p=civicrm-core.git CRM-14246 - event on behalf - alter function that assigns events to cope with string or array --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 2617c25793..8cbc0d9e59 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1657,7 +1657,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $profiles[] = $this->_values['custom_pre_id']; } if($this->_values['custom_post_id']) { - $profiles[] = $this->_values['custom_post_id']; + $profiles = array_merge($profiles, (array) $this->_values['custom_post_id']); } if($onlinePaymentProcessorEnabled) { $profiles[] = 'billing';