From 71098424bccb1452d0225017bfb197130e0bd82a Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 27 Oct 2015 11:11:16 +0530 Subject: [PATCH] CRM-16990: notice fixes ---------------------------------------- * CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...) https://issues.civicrm.org/jira/browse/CRM-16990 --- CRM/Case/Form/Case.php | 4 +++- CRM/Member/Form/Membership.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CRM/Case/Form/Case.php b/CRM/Case/Form/Case.php index cdd53b6bb5..059fe437c7 100644 --- a/CRM/Case/Form/Case.php +++ b/CRM/Case/Form/Case.php @@ -181,7 +181,9 @@ class CRM_Case_Form_Case extends CRM_Core_Form { 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'])) { diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index 9f5528b42b..51cf19ad8f 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -244,7 +244,9 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { 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'])) { -- 2.25.1