From 81b5460311d73c3d05a38102fd505ff9fbd4787a 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 d450a7ba40..741b5ad188 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