From 619b98165b374bf331073c1d0053745462c97ffc Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 1 May 2023 11:14:01 +1200 Subject: [PATCH] Fix notice on Constituent Summary report (strict smarty) --- CRM/Report/Form.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index d7ead6275a..e6c48be595 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1319,13 +1319,13 @@ class CRM_Report_Form extends CRM_Core_Form { } } } + // Having a group_title is secret code for being a custom group + // which cryptically translates to needing an accordion. + // here we make that explicit. + $colGroups[$tableName]['use_accordian_for_field_selection'] = !$groupTitle && isset($table['group_title']); - if (!$groupTitle && isset($table['group_title'])) { - $groupTitle = $table['group_title']; - // Having a group_title is secret code for being a custom group - // which cryptically translates to needing an accordion. - // here we make that explicit. - $colGroups[$tableName]['use_accordian_for_field_selection'] = TRUE; + if (!$groupTitle) { + $groupTitle = $table['group_title'] ?? NULL; } $colGroups[$tableName]['fields'][$fieldName] = $field['title'] ?? NULL; -- 2.25.1