From 26b82b94b74656d6aede30ac5848161079330faa Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 23 Oct 2015 16:54:49 +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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index 8321466288..4c92293f59 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -168,7 +168,7 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { } if (!$this->_rtypeId) { - $params = $this->controller->exportValues($this->_name); + $params = CRM_Utils_Request::exportValues(); if (isset($params['relationship_type_id'])) { $this->_rtypeId = $params['relationship_type_id']; } @@ -200,11 +200,6 @@ 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