dev/core#527 simpler solution
authorSamuel Vanhove <samuel@symbiotic.coop>
Wed, 31 Mar 2021 19:49:25 +0000 (15:49 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Wed, 31 Mar 2021 19:49:25 +0000 (15:49 -0400)
CRM/Contribute/BAO/ContributionPage.php
CRM/Event/BAO/Event.php

index 9ce2481d5f77756f6af0064f1a5676d94bdb842a..c15e5c3d10d08e7b14be7bccdf6ee64b45403419 100644 (file)
@@ -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 (
index 0eb730187d6a91703af51e649697d0663c917a5c..267a00644f37c1715e74a9f0c0ca8d0560993779 100644 (file)
@@ -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 (