From 965af54888b5a7a3065569a01a1722a0b9296d7c Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 23 Oct 2015 15:40:13 +0530 Subject: [PATCH] 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 --- CRM/Contact/Form/Relationship.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.25.1