Changed array references from civicrm_contribution to civicrm_membership; now generat...
authorChris Doten <cdoten@ndi.org>
Sat, 4 May 2013 21:05:16 +0000 (21:05 +0000)
committerChris Doten <cdoten@ndi.org>
Sat, 4 May 2013 21:05:16 +0000 (21:05 +0000)
CRM/Report/Form/Member/Detail.php

index a5a41748f4996b3131f2db03fef3ed662a54c242..e307227b14959c03e7b8d59b5e80da8efc06b17b 100644 (file)
@@ -269,15 +269,15 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
 
        // If we have active campaigns add those elements to both the fields and filters
     if ($campaignEnabled && !empty($this->activeCampaigns)) {
-      $this->_columns['civicrm_contribution']['fields']['campaign_id'] = array(
+      $this->_columns['civicrm_membership']['fields']['campaign_id'] = array(
         'title' => ts('Campaign'),
         'default' => 'false',
       );
-      $this->_columns['civicrm_contribution']['filters']['campaign_id'] = array('title' => ts('Campaign'),
+      $this->_columns['civicrm_membership']['filters']['campaign_id'] = array('title' => ts('Campaign'),
         'operatorType' => CRM_Report_Form::OP_MULTISELECT,
         'options' => $this->activeCampaigns,
       );
-      $this->_columns['civicrm_contribution']['order_bys']['campaign_id'] = array('title' => ts('Campaign'));
+      $this->_columns['civicrm_membership']['order_bys']['campaign_id'] = array('title' => ts('Campaign'));
     }
 
     $this->_currencyColumn = 'civicrm_contribution_currency';