Skip to content

Commit

Permalink
Merge pull request #23321 from davejenx/report-column-nodisplay
Browse files Browse the repository at this point in the history
PR 22070 follow-up: reinstate respecting no_display on report column headers
  • Loading branch information
eileenmcnaughton authored May 3, 2022
2 parents c0f0578 + 1845a10 commit 31aa1eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CRM/Report/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2507,10 +2507,12 @@ public function formatDisplay(&$rows, $pager = TRUE) {
if (!empty($value['no_display'])) {
unset($this->_columnHeaders[$key]);
}
foreach (['colspan', 'type'] as $expectedKey) {
if (!isset($this->_columnHeaders[$key][$expectedKey])) {
// Ensure it is set to prevent smarty notices.
$this->_columnHeaders[$key][$expectedKey] = FALSE;
else {
foreach (['colspan', 'type'] as $expectedKey) {
if (!isset($this->_columnHeaders[$key][$expectedKey])) {
// Ensure it is set to prevent smarty notices.
$this->_columnHeaders[$key][$expectedKey] = FALSE;
}
}
}
}
Expand Down

0 comments on commit 31aa1eb

Please sign in to comment.