r61595 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61594‎ | r61595 | r61596 >
Date:19:22, 27 January 2010
Author:diana
Status:deferred
Tags:
Comment:
add N/A when no note in ContributionView
Modified paths:
  • /civicrm/trunk/sites/all/modules/civicrm_fix_notes/civicrm_fix_notes.module (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/civicrm_fix_notes/civicrm_fix_notes.module
@@ -41,6 +41,10 @@
4242 $db = new civicrm_api_db();
4343 $note = db_result(db_query("SELECT note FROM {civicrm_contribution} WHERE id = '%d'", $curr_id));
4444
 45+ if (!$note) {
 46+ $note = "N/A";
 47+ }
 48+
4549 $form->addElement('static', 'donor_comment', "Donor Comment", $note);
4650 $form->assign( 'donor_comment' );
4751

Status & tagging log