From e1a29ba154ef824518f6a2448fc24740b7c7fd2d Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 7 Aug 2019 19:20:22 +1200 Subject: [PATCH] Switch to helper function --- CRM/Event/BAO/Event.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 2506d05a9f..e77244bef1 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1455,8 +1455,7 @@ WHERE civicrm_event.is_active = 1 } if (!empty($fields)) { - $profile = civicrm_api3('UFGroup', 'getsingle', ['id' => $gid, ['return' => ['title', 'frontend_title']]]); - $groupTitle['groupTitle'] = $profile['frontend_title'] ?? $profile['title']; + $groupTitle['groupTitle'] = CRM_Core_BAO_UFGroup::getFrontEndTitle((int) $gid); } $imProviders = CRM_Core_PseudoConstant::get('CRM_Core_DAO_IM', 'provider_id'); -- 2.25.1