From fc690477548024695501ee77aa8e0d2d00de7718 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Fri, 16 Apr 2021 08:51:48 -0400 Subject: [PATCH] dev/core#2543 Fix Membership Edit PHP fatal when no recorded payment --- CRM/Member/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form.php b/CRM/Member/Form.php index 5b65b75372..1ea223b7e8 100644 --- a/CRM/Member/Form.php +++ b/CRM/Member/Form.php @@ -483,7 +483,7 @@ class CRM_Member_Form extends CRM_Contribute_Form_AbstractEditPayment { if ($priceSetDetails[$this->order->getPriceSetID()]['is_quick_config'] && isset($formValues['total_amount'])) { // Amount overrides only permitted on quick config. // Possibly Order object should enforce this... - $this->order->setOverrideTotalAmount($formValues['total_amount']); + $this->order->setOverrideTotalAmount((float) $formValues['total_amount']); } $this->order->setOverrideFinancialTypeID((int) $formValues['financial_type_id']); return $formValues; -- 2.25.1