projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f01086
)
CRM-10994 in import bash donations not allowed
author
mgbdev
<mgbdev@gmail.com>
Thu, 21 Nov 2013 05:26:43 +0000
(10:56 +0530)
committer
mgbdev
<mgbdev@gmail.com>
Thu, 21 Nov 2013 05:26:43 +0000
(10:56 +0530)
CRM/Contribute/Import/Parser/Contribution.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contribute/Import/Parser/Contribution.php
b/CRM/Contribute/Import/Parser/Contribution.php
index 7c555ca826423e21dd174c9eeb7b153b9f46716c..574367f12c8d47b4675cd296d66ce7e2e4528afd 100644
(file)
--- 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) {