Ejegg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/176157
Change subject: Quote date when checking for more recent contributions
......................................................................
Quote date when checking for more recent contributions
Should stop breaking TY mails.
Change-Id: I7f27bdd522dc0b4e44a1a434a96a93b82aa05d7d
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.module
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/57/176157/1
diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
index 8996c51..021c779 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
@@ -1790,7 +1790,7 @@
$sql = <<<EOS
SELECT id FROM civicrm_contribution
WHERE contact_id = {$contact_id}
-AND receive_date > {$receive_date}
+AND receive_date > '{$receive_date}'
LIMIT 1
EOS;
$dao = CRM_Core_DAO::executeQuery( $sql );
--
To view, visit https://gerrit.wikimedia.org/r/176157
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f27bdd522dc0b4e44a1a434a96a93b82aa05d7d
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits