From: Seamus Lee Date: Wed, 10 Jan 2024 21:15:21 +0000 (+1100) Subject: Fix Hard Fail when loading back office add membership form with membership types... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7d9e51cfafab153a7730dce8c0536fe91f2b10a1;p=civicrm-core.git Fix Hard Fail when loading back office add membership form with membership types with no minimum fee set Switch to numeric 0 --- diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index e67d22caa4..42262451c7 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -427,7 +427,7 @@ DESC limit 1"); $selOrgMemType[$memberOfContactId][$key] = $values['name'] ?? NULL; } } - $totalAmount = $values['minimum_fee'] ?? NULL; + $totalAmount = $values['minimum_fee'] ?? 0; // build membership info array, which is used when membership type is selected to: // - set the payment information block // - set the max related block