Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1597 from 18F/rmh-1532-contactbirthplace
Browse files Browse the repository at this point in the history
Make contact birthplace encoding more defensive
  • Loading branch information
ryanhofdotgov authored Mar 27, 2019
2 parents 992b805 + 34f56e9 commit c394f07
Show file tree
Hide file tree
Showing 5 changed files with 459 additions and 41 deletions.
4 changes: 3 additions & 1 deletion api/templates/foreign-contacts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<Birth>
{{dateOptional $Item.Birthdate $Item.BirthdateNotApplicable}}
<Place DoNotKnow="{{notApplicable $Item.BirthplaceNotApplicable}}">
{{location $Item.Birthplace}}
{{if notApplicable $Item.BirthplaceNotApplicable | ne "True"}}
{{location $Item.Birthplace}}
{{end}}
</Place>
</Birth>
<Citizenships>
Expand Down
Loading

0 comments on commit c394f07

Please sign in to comment.