Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module |
— | — | @@ -301,7 +301,7 @@ |
302 | 302 | $dao = CRM_Core_DAO::executeQuery( $query ); // Execute's query using CiviCRM data object stuff |
303 | 303 | while ( $dao->fetch() ) { |
304 | 304 | if ( $dao->label == 'Donor Comment' ) { |
305 | | - $comment = ( $msg[ 'comment' ] ) ? $msg[ 'comment'] : $dao->default_value; |
| 305 | + $comment = ( $msg[ 'comment' ] ) ? $msg[ 'comment'] : ''; |
306 | 306 | $contribution[ 'custom_' . $dao->id ] = $comment; |
307 | 307 | } elseif ( $dao->default_value ) { // if we dont make sure $dao->default_value has some value, Civi breaks when we try to insert |
308 | 308 | $contribution[ 'custom_' . $dao->id ] = $dao->default_value; |