CRM
CRM copied to clipboard
USA Addresses not handled correctly in non-USA installations
On what page in the application did you find this issue?
DirectoryReports.php
On what type of server is this running? Dedicated / Shared hosting? Linux / Windows?
Dedicated system (Debian 11)
What browser (and version) are you running?
- Safari 15.3 (17612.4.9.1.8)
- Firefox 96.0.3
- Brave 1.35.100 (Chromium 98.0.4758.87)
What version of PHP is the server running?
7.4.27
What version of SQL Server are you running?
MySQL 5.7.23-23
What version of ChurchCRM are you running?
4.4.5
Description of issue and steps to recreate
When a ChurchCRM is set up to host a non-USA locale and address defaults, any people added that happen to have USA addresses are not handled correctly. Specifically, the USA state is replaced with whatever the ChurchCRM default (local) state is, and the country is omitted.
To recreate
- Setup ChurchCRM with non-USA locale and default country/state to be non-USA. For this example I am using: Locale: en_AU Default Country: Australia Default State: NSW
- Create a person and associated family with a valid USA address:
- Generate a "People Directory" (or mailing label etc) - note state is "NSW" (should be "CA") and country is missing:
Expected result
People Directory should correctly show the USA state and list "United States" as the country.
A better way to do this, and for it to work globally, would be to compare the country of the church with the country of the person and not to simply hard code it for the USA
we should open a ticket that removes the US check and compare the system Country.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 15 days with no activity.
Still an issue.
The USA is hard coded in some areas, hence the strange behavior.