From: yashodha Date: Fri, 23 Oct 2015 10:10:13 +0000 (+0530) Subject: CRM-16990: Custom fields are NOT being saved for some component custom data (activiti... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=965af54888b5a7a3065569a01a1722a0b9296d7c;p=civicrm-core.git CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...) ---------------------------------------- * CRM-16990: Custom fields are NOT being saved for some component custom data (activities, membership ...) https://issues.civicrm.org/jira/browse/CRM-16990 --- diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index 0d7c1f6f4a..8321466288 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -200,6 +200,11 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { } } + // retrieve relation type id from post variables + if (!$this->_relationshipTypeId) { + $rType = explode('_', CRM_Utils_Array::value('relationship_type_id', $_POST)); + $this->_relationshipTypeId = $rType[0]; + } // when custom data is included in this page if (!empty($_POST['hidden_custom'])) { CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_relationshipTypeId, 1, 'Relationship', $this->_relationshipId);