From 124b978ed04bd9a09c0d1e7c3dadcdd08b2982ea Mon Sep 17 00:00:00 2001 From: Web Access Date: Wed, 13 Jan 2016 16:59:18 +0530 Subject: [PATCH] CRM-17787 --- CRM/Contribute/BAO/Contribution.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index e44de0544d..4b10b2ea43 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -810,6 +810,15 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution { ), ); + // CRM-17787 + $campaignTitle = array( + 'contribution_campaign_title' => array( + 'title' => ts('Campaign Title'), + 'name' => 'campaign_title', + 'where' => 'civicrm_campaign.title', + 'data_type' => CRM_Utils_Type::T_STRING, + ), + ); $softCreditFields = array( 'contribution_soft_credit_name' => array( 'name' => 'contribution_soft_credit_name', @@ -854,7 +863,7 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution { ); $fields = array_merge($impFields, $typeField, $contributionStatus, $contributionPage, $optionField, $expFieldProduct, - $expFieldsContrib, $contributionNote, $contributionRecurId, $extraFields, $softCreditFields, $financialAccount, $premiums, + $expFieldsContrib, $contributionNote, $contributionRecurId, $extraFields, $softCreditFields, $financialAccount, $premiums, $campaignTitle, CRM_Core_BAO_CustomField::getFieldsForImport('Contribution', FALSE, FALSE, FALSE, $checkPermission) ); -- 2.25.1