----------------------------------------
* CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...)
https://issues.civicrm.org/jira/browse/CRM-16990
$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);
}