From 0c34d9b8ddc739fddb7c170c284a3b34541727f3 Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Fri, 5 Jun 2020 10:19:44 +0100 Subject: [PATCH] Fix setAmount to set the right amount on payment propertybag --- Civi/Payment/PropertyBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Payment/PropertyBag.php b/Civi/Payment/PropertyBag.php index 3fc564183fd..e2e2cdd4abb 100644 --- a/Civi/Payment/PropertyBag.php +++ b/Civi/Payment/PropertyBag.php @@ -388,7 +388,7 @@ class PropertyBag implements \ArrayAccess { throw new \InvalidArgumentException("setAmount requires a numeric amount value"); } - return $this->set('amount', CRM_Utils_Money::format($value, NULL, NULL, TRUE), $label); + return $this->set('amount', $label, \CRM_Utils_Money::format($value, NULL, NULL, TRUE)); } /** -- GitLab