projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac22146
)
Fix setAmount to set the right amount on payment propertybag
author
Matthew Wire
<mjw@mjwconsult.co.uk>
Fri, 5 Jun 2020 09:19:44 +0000
(10:19 +0100)
committer
Matthew Wire
<mjw@mjwconsult.co.uk>
Fri, 5 Jun 2020 09:24:54 +0000
(10:24 +0100)
Civi/Payment/PropertyBag.php
patch
|
blob
|
blame
|
history
diff --git
a/Civi/Payment/PropertyBag.php
b/Civi/Payment/PropertyBag.php
index 3fc564183fdd2aa6b83dd3f1cede4d634a44e9a4..e2e2cdd4abb2101d413ef8702d444fb8f69c13b5 100644
(file)
--- 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)
);
}
/**