From: mgbdev Date: Thu, 21 Nov 2013 05:26:43 +0000 (+0530) Subject: CRM-10994 in import bash donations not allowed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c2e1f9efa469d7e3b53ed9d6271024975c825351;p=civicrm-core.git CRM-10994 in import bash donations not allowed --- 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) {