From 4238f84bfc2e2c172272a39f24e5bd6fa8826262 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 6 Dec 2018 13:12:11 +0530 Subject: [PATCH] add missing property so the results are shown properly --- CRM/Report/Form.php | 6 +++--- CRM/Report/Form/Contribute/Lybunt.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index f005e472f8..8f2c1fe1d9 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -4265,14 +4265,14 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a $getCampaigns = CRM_Campaign_BAO_Campaign::getPermissionedCampaigns(NULL, NULL, FALSE, FALSE, TRUE); // If we have a campaign, build out the relevant elements if (!empty($getCampaigns['campaigns'])) { - $campaigns = $getCampaigns['campaigns']; - asort($campaigns); + $this->campaigns = $getCampaigns['campaigns']; + asort($this->campaigns); $this->_columns[$entityTable]['fields']['campaign_id'] = array('title' => ts('Campaign'), 'default' => 'false'); if ($filters) { $this->_columns[$entityTable]['filters']['campaign_id'] = array( 'title' => ts('Campaign'), 'operatorType' => CRM_Report_Form::OP_MULTISELECT, - 'options' => $campaigns, + 'options' => $this->campaigns, 'type' => CRM_Utils_Type::T_INT, ); } diff --git a/CRM/Report/Form/Contribute/Lybunt.php b/CRM/Report/Form/Contribute/Lybunt.php index 03e89d2d69..bad9b8ff9e 100644 --- a/CRM/Report/Form/Contribute/Lybunt.php +++ b/CRM/Report/Form/Contribute/Lybunt.php @@ -697,7 +697,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form { // convert campaign_id to campaign title if (array_key_exists('civicrm_contribution_campaign_id', $row)) { if ($value = $row['civicrm_contribution_campaign_id']) { - $rows[$rowNum]['civicrm_contribution_campaign_id'] = $this->activeCampaigns[$value]; + $rows[$rowNum]['civicrm_contribution_campaign_id'] = $this->campaigns[$value]; $entryFound = TRUE; } } -- 2.25.1