From: Chris Doten Date: Sat, 4 May 2013 21:10:05 +0000 (+0000) Subject: Updated report display to show campaign name, not ID number X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=229c2785dd0c9df3bc6e31d92fdb0c03c061bfcc;p=civicrm-core.git Updated report display to show campaign name, not ID number --- diff --git a/CRM/Report/Form/Member/Detail.php b/CRM/Report/Form/Member/Detail.php index e307227b14..af0d1b1aab 100644 --- a/CRM/Report/Form/Member/Detail.php +++ b/CRM/Report/Form/Member/Detail.php @@ -520,9 +520,9 @@ class CRM_Report_Form_Member_Detail 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]; + if (array_key_exists('civicrm_membership_campaign_id', $row)) { + if ($value = $row['civicrm_membership_campaign_id']) { + $rows[$rowNum]['civicrm_membership_campaign_id'] = $this->activeCampaigns[$value]; $entryFound = TRUE; } }