CRM-12309
authorDeepak Srivastava <deepak.srivastava@webaccess.co.in>
Wed, 10 Apr 2013 11:37:00 +0000 (17:07 +0530)
committerDeepak Srivastava <deepak.srivastava@webaccess.co.in>
Wed, 10 Apr 2013 11:37:00 +0000 (17:07 +0530)
CRM/Report/Form/Contribute/Detail.php

index 87fd5f4f354a8b9bb06dc055034aaaa1bb8b6399..22878495fda8f647fbb408221d07f34ca934152c 100644 (file)
@@ -456,7 +456,8 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
                       AND emailhonor.is_primary = 1\n";
     }
     // include contribution note
-    if (CRM_Utils_Array::value('contribution_note', $this->_params['fields'])) {
+    if (CRM_Utils_Array::value('contribution_note', $this->_params['fields']) ||
+      CRM_Utils_Array::value('note_value', $this->_params)) {
       $this->_from.= "
             LEFT JOIN civicrm_note {$this->_aliases['civicrm_note']}
                       ON ( {$this->_aliases['civicrm_note']}.entity_table = 'civicrm_contribution' AND