From c339dbc05461cbdf7b2423186351029a3f51c2bb Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 15 Dec 2015 12:01:15 +0530 Subject: [PATCH] CRM-17704: Export: Regression on Select Fields to Export - Current Employer ---------------------------------------- * CRM-17704: Export: Regression on Select Fields to Export - Current Employer https://issues.civicrm.org/jira/browse/CRM-17704 --- CRM/Core/BAO/Mapping.php | 2 +- CRM/Export/BAO/Export.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 004b769c2b..3f4c8872f3 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -341,7 +341,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { //get the current employer for mapping. if ($mappingType == 'Export') { - $fields['Individual']['current_employer']['title'] = ts('Current Employer'); + $fields['Individual']['current_employer_id']['title'] = ts('Current Employer ID'); } // add component fields diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 44e150f172..33924782bb 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -117,6 +117,9 @@ class CRM_Export_BAO_Export { elseif ($exportMode == CRM_Export_Form_Select::ACTIVITY_EXPORT) { $property = 'activity_id'; } + elseif ($exportMode == CRM_Export_Form_Select::CONTACT_EXPORT) { + $property = 'contact_id'; + } return $property; } -- 2.25.1