From 6b04b7ea1de1aa771428d872ecdac3177d48122e Mon Sep 17 00:00:00 2001 From: Samuel Vanhove Date: Wed, 31 Mar 2021 15:49:25 -0400 Subject: [PATCH] dev/core#527 simpler solution --- CRM/Contribute/BAO/ContributionPage.php | 2 +- CRM/Event/BAO/Event.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/BAO/ContributionPage.php b/CRM/Contribute/BAO/ContributionPage.php index 9ce2481d5f..c15e5c3d10 100644 --- a/CRM/Contribute/BAO/ContributionPage.php +++ b/CRM/Contribute/BAO/ContributionPage.php @@ -483,7 +483,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio $fields = CRM_Core_BAO_UFGroup::getFields($gid, FALSE, CRM_Core_Action::VIEW, NULL, NULL, FALSE, NULL, FALSE, NULL, CRM_Core_Permission::CREATE, NULL); foreach ($fields as $k => $v) { if (!$groupTitle) { - $groupTitle = !empty($v['groupDisplayTitle']) ? $v['groupDisplayTitle'] : $v['groupTitle']; + $groupTitle = $v['groupDisplayTitle']; } // suppress all file fields from display and formatting fields if ( diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index 0eb730187d..267a00644f 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -1320,7 +1320,7 @@ WHERE civicrm_event.is_active = 1 $groupTitle = NULL; foreach ($fields as $k => $v) { if (!$groupTitle) { - $groupTitle = !empty($v['groupDisplayTitle']) ? $v['groupDisplayTitle'] : $v['groupTitle']; + $groupTitle = $v['groupDisplayTitle']; } // suppress all file fields from display if ( -- 2.25.1