Updated report display to show campaign name, not ID number
authorChris Doten <cdoten@ndi.org>
Sat, 4 May 2013 21:10:05 +0000 (21:10 +0000)
committerChris Doten <cdoten@ndi.org>
Sat, 4 May 2013 21:10:05 +0000 (21:10 +0000)
CRM/Report/Form/Member/Detail.php

index e307227b14959c03e7b8d59b5e80da8efc06b17b..af0d1b1aab0ba72de8ed6dff447850efa1ff126d 100644 (file)
@@ -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;
         }
       }