From ba79698b316a79e038f07b7325b452e6e97faa21 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 1 May 2023 13:08:16 +1200 Subject: [PATCH] Remove notices on group_by i reports (eg pledge report) --- CRM/Report/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index e6c48be595..dbb25c3eea 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -2520,7 +2520,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND unset($this->_columnHeaders[$key]); } else { - foreach (['colspan', 'type'] as $expectedKey) { + foreach (['colspan', 'type', 'group_by'] as $expectedKey) { if (!isset($this->_columnHeaders[$key][$expectedKey])) { // Ensure it is set to prevent smarty notices. $this->_columnHeaders[$key][$expectedKey] = FALSE; -- 2.25.1