From: Chris Doten Date: Sat, 4 May 2013 21:05:16 +0000 (+0000) Subject: Changed array references from civicrm_contribution to civicrm_membership; now generat... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e3dfdfc30425d357dfc0c5103fb010466f085b02;p=civicrm-core.git Changed array references from civicrm_contribution to civicrm_membership; now generates SQL properly. --- 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';