From 9ed6e309819a252e0c5c13123a2aa27133e13315 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 19 Dec 2023 15:23:38 +1300 Subject: [PATCH] Fix notice on rendering examples when no contribution pages exist --- CRM/Member/WorkflowMessage/Membership/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/WorkflowMessage/Membership/Membership.php b/CRM/Member/WorkflowMessage/Membership/Membership.php index 1169ea498f..94395abfb4 100644 --- a/CRM/Member/WorkflowMessage/Membership/Membership.php +++ b/CRM/Member/WorkflowMessage/Membership/Membership.php @@ -41,7 +41,7 @@ class CRM_Member_WorkflowMessage_Membership_Membership extends WorkflowMessageEx foreach ($workflows as $workflow) { foreach ($priceSets as $priceSet) { - if (!$priceSet['contribution_page_id'] && $workflow === 'membership_online_receipt' & count($priceSets) > 1) { + if (empty($priceSet['contribution_page_id']) && $workflow === 'membership_online_receipt' & count($priceSets) > 1) { // Generally the online receipt is used with a contribution page so lets' focus // on those examples for it - unless none exist. It could also be used // on other contributions via the send receipt method so we do want to show it if -- 2.25.1