r70408 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70407‎ | r70408 | r70409 >
Date:20:07, 3 August 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Made a fix for handling NULL donor comments in batch processing
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module
@@ -277,7 +277,7 @@
278278 'receive_date' => date('Y-m-d H:i:s', $msg['date']),
279279 'currency' => 'USD',
280280 'source' => $msg['original_currency'] . ' ' . $msg['original_gross'],
281 - 'custom_45' => $msg['comment']
 281+ 'custom_45' => ( $msg['comment'] ) ? $msg['comment'] : '',
282282 );
283283
284284 watchdog( 'queue2civicrm', 'Contribution array for civicrm_contribution_add(): ' . print_r($contribution, TRUE));

Status & tagging log