(dev/core#491) Report results don't show inactive campaigns
authoryashodha <yashodha@cividesk.com>
Tue, 30 Oct 2018 09:06:57 +0000 (14:36 +0530)
committeryashodha <yashodha@cividesk.com>
Tue, 30 Oct 2018 09:06:57 +0000 (14:36 +0530)
CRM/Report/Form/Contribute/Detail.php
CRM/Report/Form/Contribute/Summary.php

index 466e47f201168e2a4ab676463078f2632a92753b..4b80242ed16484a6b1a09113ea086e2b8995ae48 100644 (file)
@@ -90,7 +90,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form {
     $config = CRM_Core_Config::singleton();
     $campaignEnabled = in_array("CiviCampaign", $config->enableComponents);
     if ($campaignEnabled) {
-      $getCampaigns = CRM_Campaign_BAO_Campaign::getPermissionedCampaigns(NULL, NULL, TRUE, FALSE, TRUE);
+      $getCampaigns = CRM_Campaign_BAO_Campaign::getPermissionedCampaigns(NULL, NULL, FALSE, FALSE, TRUE);
       $this->activeCampaigns = $getCampaigns['campaigns'];
       asort($this->activeCampaigns);
     }
index 6ebe56ab8072b8cff26b4cc8ed2ac02ffa4288f5..76ba6eaf8134d4d02ac277047ececb6d9387da55 100644 (file)
@@ -74,7 +74,7 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form {
     $config = CRM_Core_Config::singleton();
     $campaignEnabled = in_array("CiviCampaign", $config->enableComponents);
     if ($campaignEnabled) {
-      $getCampaigns = CRM_Campaign_BAO_Campaign::getPermissionedCampaigns(NULL, NULL, TRUE, FALSE, TRUE);
+      $getCampaigns = CRM_Campaign_BAO_Campaign::getPermissionedCampaigns(NULL, NULL, FALSE, FALSE, TRUE);
       $this->activeCampaigns = $getCampaigns['campaigns'];
       asort($this->activeCampaigns);
     }