CRM-18183
authorWeb Access <rohan.katkar@webaccessglobal.com>
Wed, 16 Mar 2016 09:53:14 +0000 (15:23 +0530)
committerWeb Access <rohan.katkar@webaccessglobal.com>
Wed, 16 Mar 2016 09:53:14 +0000 (15:23 +0530)
CRM/Contact/Form/CustomData.php
CRM/Contact/Page/View/CustomData.php

index 04b68199068e324f86369d8abdc31238c23e68b1..b4fb1845ef2c3140c8eab9135ac58210c4ab9945 100644 (file)
@@ -265,7 +265,7 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
       $groupTree = &CRM_Core_BAO_CustomGroup::getTree($this->_contactType, $this, $this->_tableID,
         $this->_groupID, $this->_contactSubType
       );
-      $customValueCount = CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, TRUE, $this->_groupID);
+      $customValueCount = CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, TRUE, $this->_groupID, NULL, NULL, $this->_tableID);
     }
     else {
       $customValueCount = $_POST['hidden_custom_group_count'][$this->_groupID];
@@ -282,7 +282,8 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form {
    */
   public function postProcess() {
     // Get the form values and groupTree
-    $params = CRM_Utils_Request::exportValues();
+    //CRM-18183
+    $params = $this->controller->exportValues($this->_name);
 
     CRM_Core_BAO_CustomValueTable::postProcess($params,
       'civicrm_contact',
index b56d3b6187bd4fb410b483abb2bce7855de8f7c1..ea7da4c566e7019fc6958996059b4bbcff27ece4 100644 (file)
@@ -151,7 +151,7 @@ class CRM_Contact_Page_View_CustomData extends CRM_Core_Page {
           $this->assign('multiRecordDisplay', $this->_multiRecordDisplay);
           $this->assign('skipTitle', 1);
         }
-        CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, $recId);
+        CRM_Core_BAO_CustomGroup::buildCustomDataView($this, $groupTree, FALSE, NULL, NULL, $recId, $this->_contactId);
       }
     }
     else {