Fix Hard Fail when loading back office add membership form with membership types...
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 10 Jan 2024 21:15:21 +0000 (08:15 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 11 Jan 2024 00:39:34 +0000 (11:39 +1100)
Switch to numeric 0

CRM/Member/Form/Membership.php

index e67d22caa403f4154cb80a42b840dbfe5be3a226..42262451c72c34d4068f8d38230e9bcf05db1635 100644 (file)
@@ -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