From fbbaf0ccbaf06f9a5e2019b3f5bfd4f4b82f4a16 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 15 Jul 2023 13:42:25 +1200 Subject: [PATCH] Use internal var for groupID --- CRM/Custom/Form/CustomDataByType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Custom/Form/CustomDataByType.php b/CRM/Custom/Form/CustomDataByType.php index 0b8b619b86..74c94d9cd0 100644 --- a/CRM/Custom/Form/CustomDataByType.php +++ b/CRM/Custom/Form/CustomDataByType.php @@ -38,7 +38,7 @@ class CRM_Custom_Form_CustomDataByType extends CRM_Core_Form { $this->_groupCount = CRM_Utils_Request::retrieve('cgcount', 'Positive'); $this->_entityId = CRM_Utils_Request::retrieve('entityID', 'Positive'); $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive'); - $this->_groupID = CRM_Utils_Request::retrieve('groupID', 'Positive'); + $this->_groupID = $groupID = CRM_Utils_Request::retrieve('groupID', 'Positive'); $onlySubType = CRM_Utils_Request::retrieve('onlySubtype', 'Boolean'); $this->_action = CRM_Utils_Request::retrieve('action', 'Alphanumeric'); $this->assign('cdType', FALSE); @@ -48,7 +48,7 @@ class CRM_Custom_Form_CustomDataByType extends CRM_Core_Form { if (array_key_exists($this->_type, $contactTypes)) { $this->assign('contactId', $this->_entityId); } - $this->setGroupTree($this, $subType, $this->_groupID, $onlySubType); + $this->setGroupTree($this, $subType, $groupID, $onlySubType); $this->assign('suppressForm', TRUE); $this->controller->_generateQFKey = FALSE; -- 2.25.1