Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc |
— | — | @@ -295,10 +295,10 @@ |
296 | 296 | if ( $dao->name == 'Contribution_Comments' ) { |
297 | 297 | $comment = ( $msg[ 'comment' ] ) ? $msg[ 'comment'] : ''; |
298 | 298 | $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 ); |
300 | 300 | } else { // if we dont make sure $dao->default_value has some value, Civi breaks when we try to insert |
301 | 301 | $query = "INSERT INTO {" . $dao->table_name . "} (entity_id) VALUES (%d)"; |
302 | | - db_query( $query, $contribution[ 'id' ] ); |
| 302 | + db_query( $query, $contribution_result[ 'id' ] ); |
303 | 303 | } |
304 | 304 | } |
305 | 305 | $dbs->use_default(); |