Mwalker has uploaded a new change for review.
https://gerrit.wikimedia.org/r/100703
Change subject: Adding contact information for recurring subscriptions in paypal
......................................................................
Adding contact information for recurring subscriptions in paypal
Change-Id: Ica5053b2f49a59460373b47ee635cf3f62db7d3c
---
M sites/all/modules/queue2civicrm/recurring/recurring.module
1 file changed, 11 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm
refs/changes/03/100703/1
diff --git a/sites/all/modules/queue2civicrm/recurring/recurring.module
b/sites/all/modules/queue2civicrm/recurring/recurring.module
index 94264f7..f5b7046 100644
--- a/sites/all/modules/queue2civicrm/recurring/recurring.module
+++ b/sites/all/modules/queue2civicrm/recurring/recurring.module
@@ -282,10 +282,14 @@
$contact = wmf_civicrm_message_contact_update( $msg, $contact[ 'id' ] );
// Insert the location record
- $location = wmf_civicrm_message_location_insert( $msg, $contact );
-
- // Tag contact for review
- $tag = wmf_civicrm_tag_contact_for_review( $contact );
+ wmf_civicrm_message_location_insert( $msg, $contact );
+
+ // Tag contact for review
+ try {
+ $tag = wmf_civicrm_tag_contact_for_review( $contact );
+ } catch (WmfException $ex) {
+ // XXX copying old logic, continues without a review tag
+ }
}
// update subscription record with next payment date
@@ -355,12 +359,12 @@
// create contact record
$contact = wmf_civicrm_message_contact_insert( $msg );
-
+
// Insert the location record
- //$location = wmf_civicrm_message_location_insert( $msg, $contact );
+ wmf_civicrm_message_location_update( $msg, $contact );
// Tag contact for review
- //$tag = wmf_civicrm_tag_contact_for_review( $contact );
+ $tag = wmf_civicrm_tag_contact_for_review( $contact );
$dbs = wmf_civicrm_get_dbs();
$dbs->push( 'civicrm' );
--
To view, visit https://gerrit.wikimedia.org/r/100703
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica5053b2f49a59460373b47ee635cf3f62db7d3c
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Mwalker <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits