CRM-16990: notice fixes
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 27 Oct 2015 05:41:16 +0000 (11:11 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 27 Oct 2015 05:41:16 +0000 (11:11 +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/Case/Form/Case.php
CRM/Member/Form/Membership.php

index cdd53b6bb5a64cf3a60aadc0a6e5be1501809918..059fe437c781c1b2c7a524b6aa746f1b189f4257 100644 (file)
@@ -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'])) {
index 9f5528b42b85de076d78d442d942312eb498f476..51cf19ad8f438accbcee090dc3484deedf2a7e7c 100644 (file)
@@ -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'])) {