From 9710b8d11aeb4ecb942a000bbb43503aaae9d48e Mon Sep 17 00:00:00 2001 From: Rohan Katkar Date: Tue, 4 Nov 2014 13:08:56 +0530 Subject: [PATCH] Fix for CRM-15544 --- CRM/Contact/Form/CustomData.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/CustomData.php b/CRM/Contact/Form/CustomData.php index f2f49e5360..1a5f9893a8 100644 --- a/CRM/Contact/Form/CustomData.php +++ b/CRM/Contact/Form/CustomData.php @@ -127,7 +127,11 @@ class CRM_Contact_Form_CustomData extends CRM_Core_Form { // NOTE : group id is not stored in session from within CRM_Custom_Form_CustomData::preProcess func // this is due to some condition inside it which restricts it from saving in session // so doing this for multi record edit action - CRM_Custom_Form_CustomData::preProcess($this); + $entityId = CRM_Utils_Request::retrieve('entityID', 'Positive', $this); + if(!empty($entityId)) { + $subType = CRM_Contact_BAO_Contact::getContactSubType($entityId, ','); + } + CRM_Custom_Form_CustomData::preProcess($this, NULL, $subType, NULL, NULL, $entityId); if ($this->_multiRecordDisplay) { $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive', $this); $this->_tableID = $this->_entityId; -- 2.25.1