From 28e8aa1b1c318fed36f35ae1831786374d27a001 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Tue, 19 May 2015 11:42:25 -0700 Subject: [PATCH] CRM-16524 - fix batch entry total amount validation. ---------------------------------------- * CRM-16524: Batch Entry form Validation failed, even total_amount reach the expected total_amount https://issues.civicrm.org/jira/browse/CRM-16524 --- CRM/Batch/Form/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index 2d763348af..13d0534301 100755 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -327,7 +327,7 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form { } } } - if ($batchTotal != $self->_batchInfo['total']) { + if ((string) $batchTotal != $self->_batchInfo['total']) { $self->assign('batchAmountMismatch', TRUE); $errors['_qf_defaults'] = ts('Total for amounts entered below does not match the expected batch total.'); } -- 2.25.1