CRM-16990: Custom fields are NOT being saved for some component custom data (activiti...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 10:18:21 +0000 (15:48 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 10:18:21 +0000 (15:48 +0530)
----------------------------------------
* CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...)
  https://issues.civicrm.org/jira/browse/CRM-16990

CRM/Event/Form/ManageEvent/EventInfo.php

index fa5f6ab0751327b17a268034224c673dd6e9d1d1..98f9faa27c07d8e4801bbabb419d2aab1fe166a1 100644 (file)
@@ -71,7 +71,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
       $this->set('subType', CRM_Utils_Array::value('event_type_id', $_POST));
       $this->set('entityId', $this->_id);
 
-      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_id, 1, 'Event');
+      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_eventType, 1, 'Event', $this->_id);
       CRM_Custom_Form_CustomData::buildQuickForm($this);
       CRM_Custom_Form_CustomData::setDefaultValues($this);
     }