From e3dfdfc30425d357dfc0c5103fb010466f085b02 Mon Sep 17 00:00:00 2001 From: Chris Doten Date: Sat, 4 May 2013 21:05:16 +0000 Subject: [PATCH] Changed array references from civicrm_contribution to civicrm_membership; now generates SQL properly. --- CRM/Report/Form/Member/Detail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Member/Detail.php b/CRM/Report/Form/Member/Detail.php index a5a41748f4..e307227b14 100644 --- a/CRM/Report/Form/Member/Detail.php +++ b/CRM/Report/Form/Member/Detail.php @@ -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'; -- 2.25.1