Fatal Error when Signatures is clicked from more link on Campaign Dashboard (Petition...
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 Mar 2015 07:30:47 +0000 (13:00 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 10 Mar 2015 07:30:47 +0000 (13:00 +0530)
CRM/Activity/Form/Search.php

index c81f6692d36dcc5debd1d920f6ded184d50c0810..0a632f34b7756b39a5769f6e077bf4a9b8442744 100644 (file)
@@ -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);