From c2e1f9efa469d7e3b53ed9d6271024975c825351 Mon Sep 17 00:00:00 2001 From: mgbdev Date: Thu, 21 Nov 2013 10:56:43 +0530 Subject: [PATCH] CRM-10994 in import bash donations not allowed --- CRM/Contribute/Import/Parser/Contribution.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contribute/Import/Parser/Contribution.php b/CRM/Contribute/Import/Parser/Contribution.php index 7c555ca826..574367f12c 100644 --- a/CRM/Contribute/Import/Parser/Contribution.php +++ b/CRM/Contribute/Import/Parser/Contribution.php @@ -261,6 +261,10 @@ class CRM_Contribute_Import_Parser_Contribution extends CRM_Contribute_Import_Pa $customFields = CRM_Core_BAO_CustomField::getFields(CRM_Utils_Array::value('contact_type', $params)); + //CRM-10994 + if (isset($params['total_amount']) && $params['total_amount'] == 0) { + $param['total_amount'] = '0.00'; + } foreach ($params as $key => $val) { if ($val) { switch ($key) { -- 2.25.1