From: jitendrapurohit Date: Tue, 10 Mar 2015 07:30:47 +0000 (+0530) Subject: Fatal Error when Signatures is clicked from more link on Campaign Dashboard (Petition... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c56c5190adadb2cac093bdfdd02c03083843371e;p=civicrm-core.git Fatal Error when Signatures is clicked from more link on Campaign Dashboard (Petition tab) --- 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);