From c56c5190adadb2cac093bdfdd02c03083843371e Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 10 Mar 2015 13:00:47 +0530 Subject: [PATCH] Fatal Error when Signatures is clicked from more link on Campaign Dashboard (Petition tab) --- CRM/Activity/Form/Search.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Activity/Form/Search.php b/CRM/Activity/Form/Search.php index c81f6692d3..0a632f34b7 100644 --- a/CRM/Activity/Form/Search.php +++ b/CRM/Activity/Form/Search.php @@ -308,8 +308,9 @@ class CRM_Activity_Form_Search extends CRM_Core_Form_Search { $sid = CRM_Utils_Array::value('activity_survey_id', $this->_formValues); $activity_type_id = CRM_Core_DAO::getFieldValue('CRM_Campaign_DAO_Survey', $sid, 'activity_type_id'); - $this->_formValues['activity_type_id'][$activity_type_id] = 1; - $this->_defaults['activity_type_id'][$activity_type_id] = 1; + // since checkbox are replaced by multiple select option + $this->_formValues['activity_type_id'] = $activity_type_id; + $this->_defaults['activity_type_id'] = $activity_type_id; } $cid = CRM_Utils_Request::retrieve('cid', 'Positive', $this); -- 2.25.1