----------------------------------------
* CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...)
https://issues.civicrm.org/jira/browse/CRM-16990
$className::preProcess($this);
$activityGroupTree = $this->_groupTree;
+ if (!$this->_caseTypeId) {
+ $params = CRM_Utils_Request::exportValues();
+ $this->_caseTypeId = $params['case_type_id'];
+ }
// for case custom fields to populate with defaults
if (!empty($_POST['hidden_custom'])) {
CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_caseTypeId, 1, 'Case', $this->_caseId);
}
}
+ if (!$this->_memType) {
+ $params = CRM_Utils_Request::exportValues();
+ $this->_memType = $params['membership_type_id'][1];
+ }
// when custom data is included in this page
if (!empty($_POST['hidden_custom'])) {
CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_memType, 1, 'Membership', $this->_id);