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