Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module |
— | — | @@ -332,9 +332,7 @@ |
333 | 333 | |
334 | 334 | $contribution['id'] = $contribution_result['id']; |
335 | 335 | |
336 | | - // Send thank you email |
337 | | - module_invoke_all('queue2civicrm_import', $contribution['id']); |
338 | | - |
| 336 | + |
339 | 337 | // Map the tracking record to the CiviCRM contribution |
340 | 338 | if (array_key_exists('contribution_tracking_id', $msg)) { |
341 | 339 | db_query('UPDATE {contribution_tracking} SET contribution_id = %d WHERE id = %d LIMIT 1', $contribution['id'], $msg['contribution_tracking_id']); |
— | — | @@ -347,6 +345,10 @@ |
348 | 346 | ); |
349 | 347 | $tag_result = &civicrm_entity_tag_add( $tag ); |
350 | 348 | |
| 349 | + // Send thank you email, other post-import things |
| 350 | + module_invoke_all('queue2civicrm_import', $contribution['id']); |
| 351 | + |
| 352 | + |
351 | 353 | return TRUE; |
352 | 354 | |
353 | 355 | } |