projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed7e2e9
)
Switch to helper function
author
eileen
<emcnaughton@wikimedia.org>
Wed, 7 Aug 2019 07:20:22 +0000
(19:20 +1200)
committer
eileen
<emcnaughton@wikimedia.org>
Wed, 7 Aug 2019 09:35:21 +0000
(21:35 +1200)
CRM/Event/BAO/Event.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Event/BAO/Event.php
b/CRM/Event/BAO/Event.php
index 2506d05a9fc2f480ec396ddc4654e1cb18f59cc7..e77244bef1f0b5eeeb16ee436942b51e45411ec1 100644
(file)
--- 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');