CRM-10994 in import bash donations not allowed
authormgbdev <mgbdev@gmail.com>
Thu, 21 Nov 2013 05:26:43 +0000 (10:56 +0530)
committermgbdev <mgbdev@gmail.com>
Thu, 21 Nov 2013 05:26:43 +0000 (10:56 +0530)
CRM/Contribute/Import/Parser/Contribution.php

index 7c555ca826423e21dd174c9eeb7b153b9f46716c..574367f12c8d47b4675cd296d66ce7e2e4528afd 100644 (file)
@@ -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) {