From a8f9f38219fd894afb8eef87440ce465499023b6 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 26 Jan 2022 14:43:53 +1300 Subject: [PATCH] Do not pass in tablename Tablename is fetched if not passed in so no need to do the fetch first --- CRM/Contact/Page/View/CustomData.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contact/Page/View/CustomData.php b/CRM/Contact/Page/View/CustomData.php index 438bbc83a1..8d8a5e9fef 100644 --- a/CRM/Contact/Page/View/CustomData.php +++ b/CRM/Contact/Page/View/CustomData.php @@ -87,8 +87,7 @@ class CRM_Contact_Page_View_CustomData extends CRM_Core_Page { if ($this->_multiRecordDisplay != 'single') { $id = "custom_{$this->_groupId}"; - $tableName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_groupId, 'table_name'); - $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent($id, $this->_contactId, $tableName); + $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent($id, $this->_contactId); } if ($displayStyle === 'Tab with table' && $this->_multiRecordDisplay != 'single') { -- 2.25.1