Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/281889

Change subject: Split out contribution save hook
......................................................................

Split out contribution save hook

Bug: T122411
Change-Id: I2cd2b3a3ba876f1c84a4b35c3c1df55cf2981578
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.module
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/89/281889/1

diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.module 
b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
index 6d684dc..33b0970 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.module
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.module
@@ -2093,9 +2093,12 @@
  * and wmf_donor rollup fields.
  */
 function wmf_civicrm_civicrm_post( $op, $type, $id, &$contribution ) {
-       if ( $type !== 'Contribution' ) {
-               return;
+       if ( $type === 'Contribution' ) {
+               wmf_civicrm_civicrm_post_Contribution( $op, $type, $id, 
$contribution );
        }
+}
+
+function wmf_civicrm_civicrm_post_Contribution( $op, $type, $id, 
&$contribution ) {
     switch ( $op ) {
     case 'create':
     case 'edit':

-- 
To view, visit https://gerrit.wikimedia.org/r/281889
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cd2b3a3ba876f1c84a4b35c3c1df55cf2981578
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to