Katie Horn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/92815
Change subject: Fix for wmf_civicrm_mark_refund Zero is a valid count with a
rowcount of 1. The very next "if" always errors.
......................................................................
Fix for wmf_civicrm_mark_refund
Zero is a valid count with a rowcount of 1.
The very next "if" always errors.
Change-Id: I5fd86c0b74688d3e29b9752c101124b2d20497dc
---
M drupal
M sites/all/modules/wmf_common/wmf_civicrm/wmf_civicrm.module
2 files changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/15/92815/1
diff --git a/drupal b/drupal
index 98f9e6b..7e68bf6 160000
--- a/drupal
+++ b/drupal
-Subproject commit 98f9e6bffeb2b1819f10ea9e4688ec007b6990c9
+Subproject commit 7e68bf63f5d08bfa211ac9730459d3543e51988e
diff --git a/sites/all/modules/wmf_common/wmf_civicrm/wmf_civicrm.module
b/sites/all/modules/wmf_common/wmf_civicrm/wmf_civicrm.module
index f1bff4a..ce2eadd 100644
--- a/sites/all/modules/wmf_common/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_common/wmf_civicrm/wmf_civicrm.module
@@ -1173,7 +1173,7 @@
// Look for existing refunds
$query = <<<"EOS"
-SELECT COUNT(*) FROM wmf_contribution_extra
+SELECT id FROM wmf_contribution_extra
WHERE
parent_contribution_id = :id
OR (entity_id = :id AND COALESCE(parent_contribution_id, 0))
--
To view, visit https://gerrit.wikimedia.org/r/92815
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fd86c0b74688d3e29b9752c101124b2d20497dc
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Katie Horn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits