From e58cbdfc6183270e9fc02ff43c4ab09b5410d027 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 24 Dec 2021 19:58:03 +0530 Subject: [PATCH] Add state name to export fields --- CRM/Core/BAO/Mapping.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 8d7a139a98..5c2d883ac8 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -649,6 +649,11 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping implements \Civi\Test\Ho $relationships ); } + if (!empty($fields[$contactType]['state_province']) && empty($fields[$contactType]['state_province_name'])) { + $fields[$contactType]['state_province_name'] = $fields[$contactType]['state_province']; + $fields[$contactType]['state_province_name']['title'] = ts('State/Province Name'); + $fields[$contactType]['state_province']['title'] = ts('State/Province Abbreviation'); + } } } -- 2.25.1