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:
74e7051
)
Handle possibility of fee_amount = ''
author
eileen
<emcnaughton@wikimedia.org>
Fri, 4 Dec 2020 21:17:17 +0000
(10:17 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Fri, 4 Dec 2020 21:17:40 +0000
(10:17 +1300)
CRM/Contribute/BAO/Contribution.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contribute/BAO/Contribution.php
b/CRM/Contribute/BAO/Contribution.php
index b7bbf5f323715235ec3f5d1d65d12254eb2e71e6..74694231bf3a13ae033c1ad2af7633ea7471734d 100644
(file)
--- a/
CRM/Contribute/BAO/Contribution.php
+++ b/
CRM/Contribute/BAO/Contribution.php
@@
-343,7
+343,7
@@
class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
* @throws \CiviCRM_API3_Exception
*/
public static function calculateMissingAmountParams(&$params, $contributionID) {
- if (!$contributionID &&
!isset($params['fee_amount']
)) {
+ if (!$contributionID &&
(!isset($params['fee_amount']) || $params['fee_amount'] === ''
)) {
if (isset($params['total_amount']) && isset($params['net_amount'])) {
$params['fee_amount'] = $params['total_amount'] - $params['net_amount'];
}