r75316 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75315‎ | r75316 | r75317 >
Date:16:40, 24 October 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Added check for updateContributionTracking that will insert in the event that contribution_tracking_id is not set
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -1114,8 +1114,10 @@
11151115 */
11161116 public function updateContributionTracking( &$data, $force=false ) {
11171117 // ony update contrib tracking if we're coming from a single-step landing page
1118 - // which we know with cc# in utm_source or if force=true
1119 - if ( !$force && !preg_match( "/cc[0-9]/", $data[ 'utm_source' ] )) {
 1118+ // which we know with cc# in utm_source or if force=true or if contribution_tracking_id is not set
 1119+ if ( !$force &&
 1120+ !preg_match( "/cc[0-9]/", $data[ 'utm_source' ] ) &&
 1121+ $data[ 'contribution_tracking_id' ] ) {
11201122 return;
11211123 }
11221124

Status & tagging log