Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module |
— | — | @@ -276,11 +276,17 @@ |
277 | 277 | 'trxn_id' => strtoupper($msg['gateway']) . ' ' . $msg['gateway_txn_id'], |
278 | 278 | 'receive_date' => date('Y-m-d H:i:s', $msg['date']), |
279 | 279 | 'currency' => 'USD', |
280 | | - 'source' => $msg['original_currency'] . ' ' . $msg['original_gross'], |
281 | | - 'custom_45' => $msg['comment'] |
282 | | - ); |
283 | | - $contribution_result = &civicrm_contribution_add( $contribution ); |
284 | | - $contribution['id'] = $contribution_result['id']; |
| 280 | + 'source' => $msg['original_currency'] . ' ' . $msg['original_gross'], |
| 281 | + 'custom_45' => $msg['comment'] |
| 282 | + ); |
| 283 | + |
| 284 | + watchdog( 'queue2civicrm', 'Contribution array for civicrm_contribution_add(): ' . print_r($contribution, TRUE)); |
| 285 | + |
| 286 | + $contribution_result = &civicrm_contribution_add( $contribution ); |
| 287 | + |
| 288 | + watchdog( 'queue2civicrm', 'Contribution result from civicrm_contribution_add(): ' . print_r($contribution_result, TRUE)); |
| 289 | + |
| 290 | + $contribution['id'] = $contribution_result['id']; |
285 | 291 | |
286 | 292 | // Send thank you email |
287 | 293 | module_invoke_all('queue2civicrm_import', $contribution['id']); |
Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue_consume.drush.inc |
— | — | @@ -17,7 +17,6 @@ |
18 | 18 | 'Consumes items from a specified ActiveMQ queue and processes them into CiviCRM', |
19 | 19 | 'examples' => array( 'drush queue-consume' ), |
20 | 20 | 'aliases' => array( 'qc' ), |
21 | | - 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL // fully bootstrap drupal, i think this is what we need... |
22 | 21 | ); |
23 | 22 | |
24 | 23 | return $items; |