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:
d61a409
)
dev/core#2543 Fix Membership Edit PHP fatal when no recorded payment
author
Mathieu Lutfy
<mathieu@symbiotic.coop>
Fri, 16 Apr 2021 12:51:48 +0000
(08:51 -0400)
committer
Seamus Lee
<seamuslee001@gmail.com>
Fri, 16 Apr 2021 21:59:01 +0000
(07:59 +1000)
CRM/Member/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Member/Form.php
b/CRM/Member/Form.php
index d450a7ba40b019dd671d3a3d3025b7976e95d11f..741b5ad188a7d5e41b5c80cd3e6f65b7baba7a44 100644
(file)
--- 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;