Skip to content

Commit

Permalink
Merge pull request #539 from demeritcowboy/contributionpage
Browse files Browse the repository at this point in the history
Don't crash when contribution page is selected as a column
  • Loading branch information
eileenmcnaughton authored Jan 23, 2023
2 parents abe4200 + 0595eb7 commit 46b0a5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Extendedreport/Form/Report/ExtendedReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -6314,10 +6314,10 @@ protected function alterCampaign($value): string {
/**
* @param $value
*
* @return array|null
* @return string
*/
protected function alterContributionPage($value): ?array {
return CRM_Contribute_PseudoConstant::contributionPage($value);
protected function alterContributionPage($value): string {
return $value === NULL ? '' : (CRM_Contribute_PseudoConstant::contributionPage($value) ?? '');
}

/**
Expand Down

0 comments on commit 46b0a5b

Please sign in to comment.