From 5024760cb7e50846f638330cd95974b22dfd6cee Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 5 Feb 2016 12:22:36 +0530 Subject: [PATCH] CRM-17949 -- unable to save data in custom data tab --- CRM/Contact/Form/CustomData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/Form/CustomData.php b/CRM/Contact/Form/CustomData.php index 1ab2cb1785..04b6819906 100644 --- a/CRM/Contact/Form/CustomData.php +++ b/CRM/Contact/Form/CustomData.php @@ -156,7 +156,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { // when custom data is included in this page if (!empty($_POST['hidden_custom'])) { for ($i = 0; $i <= $_POST['hidden_custom_group_count'][$this->_groupID]; $i++) { - CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_contactSubType, $i); + CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_contactSubType, $i, $this->_contactType, $this->_groupID); CRM_Custom_Form_CustomData::buildQuickForm($this); CRM_Custom_Form_CustomData::setDefaultValues($this); } @@ -282,7 +282,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { */ public function postProcess() { // Get the form values and groupTree - $params = $this->controller->exportValues($this->_name); + $params = CRM_Utils_Request::exportValues(); CRM_Core_BAO_CustomValueTable::postProcess($params, 'civicrm_contact', -- 2.25.1