CRM-20931 - Allow contact custom fields to be added to Contribution Detail report
authormark burdett <mfburdett@gmail.com>
Thu, 20 Jul 2017 20:32:50 +0000 (13:32 -0700)
committermark burdett <mfburdett@gmail.com>
Thu, 20 Jul 2017 20:32:50 +0000 (13:32 -0700)
As a bonus also add nickname column to the report :)

CRM/Report/Form/Member/ContributionDetail.php

index f21d1d5785a4d5392b940c25bb93f57cedf45371..779521e8ad74769fce19bd3ff3671223c5abdf90 100644 (file)
@@ -40,6 +40,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
   protected $_customGroupExtends = array(
     'Contribution',
     'Membership',
+    'Contact',
   );
 
   /**
@@ -83,6 +84,10 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
             'title' => ts('Last Name'),
             'no_repeat' => TRUE,
           ),
+          'nick_name' => array(
+            'title' => ts('Nickname'),
+            'no_repeat' => TRUE,
+          ),
           'contact_type' => array(
             'title' => ts('Contact Type'),
             'no_repeat' => TRUE,