CRM-16990: Custom fields are NOT being saved for some component custom data (activiti...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 09:19:33 +0000 (14:49 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Wed, 21 Oct 2015 09:19:33 +0000 (14:49 +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/Contact/Form/Relationship.php
CRM/Event/Form/ManageEvent/EventInfo.php
CRM/Member/Form/MembershipRenewal.php

index 7dc455221c68cab00251654ef2a8ff200712ef40..2cada5b8d89497008525785af427bd5fc161fe9e 100644 (file)
@@ -202,7 +202,7 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
 
     // when custom data is included in this page
     if (!empty($_POST['hidden_custom'])) {
-      CRM_Custom_Form_CustomData::preProcess($this);
+      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_rtype, 1, 'Relationship', $this->_relationshipId);
       CRM_Custom_Form_CustomData::buildQuickForm($this);
       CRM_Custom_Form_CustomData::setDefaultValues($this);
     }
index 374a2a93d2a9e2bc638f2e7a19317d3d9b03ac74..fa5f6ab0751327b17a268034224c673dd6e9d1d1 100644 (file)
@@ -71,7 +71,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
       $this->set('subType', CRM_Utils_Array::value('event_type_id', $_POST));
       $this->set('entityId', $this->_id);
 
-      CRM_Custom_Form_CustomData::preProcess($this);
+      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_id, 1, 'Event');
       CRM_Custom_Form_CustomData::buildQuickForm($this);
       CRM_Custom_Form_CustomData::setDefaultValues($this);
     }
index b419773ea5699ed2d5b2f994b9d281370c10eb4d..2db99745c8b1373b95c471a1b9286def19ad46bf 100644 (file)
@@ -160,7 +160,7 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
 
     // when custom data is included in this page
     if (!empty($_POST['hidden_custom'])) {
-      CRM_Custom_Form_CustomData::preProcess($this);
+      CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_memType, 1, 'Membership', $this->_id);
       CRM_Custom_Form_CustomData::buildQuickForm($this);
       CRM_Custom_Form_CustomData::setDefaultValues($this);
     }