From 42bcf2d6e314b026436d78644a96d5376f0e8d79 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 24 May 2018 10:05:59 +1000 Subject: [PATCH] dev/core#135 Fix remaining non well formed numeric number problems in CRM_Batch_Form_EntryTest --- CRM/Batch/Form/Entry.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index 2a3a128c2a..2916344aff 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -717,8 +717,11 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { $value['soft_credit'][$key]['soft_credit_type_id'] = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_ContributionSoft', 'soft_credit_type_id', 'Gift'); } } + if (!empty($value['total_amount'])) { + $value['total_amount'] = (float) $value['total_amount']; + } - $params['actualBatchTotal'] += (float) $value['total_amount']; + $params['actualBatchTotal'] += $value['total_amount']; unset($value['financial_type']); unset($value['payment_instrument']); -- 2.25.1