CRM icon indicating copy to clipboard operation
CRM copied to clipboard

USA Addresses not handled correctly in non-USA installations

Open MrClever opened this issue 3 years ago • 9 comments

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

  1. 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
  2. Create a person and associated family with a valid USA address: Screen Shot 2022-02-14 at 12 54 50 pm
  3. Generate a "People Directory" (or mailing label etc) - note state is "NSW" (should be "CA") and country is missing: Screen Shot 2022-02-14 at 12 54 56 pm

Expected result

People Directory should correctly show the USA state and list "United States" as the country.

MrClever avatar Feb 14 '22 02:02 MrClever

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

brianteeman avatar Feb 14 '22 07:02 brianteeman

we should open a ticket that removes the US check and compare the system Country.

DawoudIO avatar Jun 20 '22 16:06 DawoudIO

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.

github-actions[bot] avatar Oct 31 '23 02:10 github-actions[bot]

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.

github-actions[bot] avatar Dec 07 '23 02:12 github-actions[bot]

This issue was closed because it has been stalled for 15 days with no activity.

github-actions[bot] avatar Dec 23 '23 02:12 github-actions[bot]

Still an issue.

The USA is hard coded in some areas, hence the strange behavior.

respencer avatar May 03 '24 16:05 respencer