r80671 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80670‎ | r80671 | r80672 >
Date:00:54, 21 January 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Fixing variable name for contribution result in contribution insert function custom data hack
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc
@@ -295,10 +295,10 @@
296296 if ( $dao->name == 'Contribution_Comments' ) {
297297 $comment = ( $msg[ 'comment' ] ) ? $msg[ 'comment'] : '';
298298 $query = "INSERT INTO {" . $dao->table_name . "} (entity_id, donor_comment) VALUES ( %d, '%s' )";
299 - db_query( $query, $contribution[ 'id' ], $comment );
 299+ db_query( $query, $contribution_result[ 'id' ], $comment );
300300 } else { // if we dont make sure $dao->default_value has some value, Civi breaks when we try to insert
301301 $query = "INSERT INTO {" . $dao->table_name . "} (entity_id) VALUES (%d)";
302 - db_query( $query, $contribution[ 'id' ] );
 302+ db_query( $query, $contribution_result[ 'id' ] );
303303 }
304304 }
305305 $dbs->use_default();

Status & tagging log