Skip to content

Commit

Permalink
Add state name to export fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Dec 24, 2021
1 parent 0881483 commit 85709d1
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'] = 'State Name';
$fields[$contactType]['state_province']['title'] = 'State Abbreviation';
}
}
}

Expand Down

0 comments on commit 85709d1

Please sign in to comment.