Skip to content

Commit

Permalink
Merge pull request #22318 from jitendrapurohit/state_name
Browse files Browse the repository at this point in the history
Add state name to export fields
  • Loading branch information
yashodha authored Jan 3, 2022
2 parents d49f3bc + e58cbdf commit 7437be6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRM/Core/BAO/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,11 @@ public static function getBasicFields($mappingType) {
$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');
}
}
}

Expand Down

0 comments on commit 7437be6

Please sign in to comment.