CRM-5040 Provinces/states show as their values for U.S. or Canada, but as their keys for China or Japan

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.8
    • Fix Version/s: 3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      After selecting a province or state and then coming back to that person's address, the value (state/province name) is shown in the case of U.S. or Canada addresses, but the key (or index number) is shown in the case of China or Japan. Did not test against other countries.

      Applies to CiviCRM 2.2.8. Also confirmed in the online demo identified as "Powered by CiviCRM 22699."

      Probably rates as higher than "Minor" issue for anyone generating mailings in a non-U.S. only context.

        Attachments

          Activity

          [CRM-5040] Provinces/states show as their values for U.S. or Canada, but as their keys for China or Japan
          Piotr Szotkowski added a comment -

          Can you please post detailed steps on how to reproduce this?

          Working on a clean 2.2.8 install I enabled US, Canada, China and Japan countries and their provinces. I then assigned a California address to my contact, and it seems like this state information sticks (it's properly stored in the database and identified as CA/California everywhere). Likewise for Canada's British Columbia, Japan's Hiroshima and China's Beijing provinces.

          Note: I think you might mean that Canada's and US's provinces are shown as their abbreviations by default (CA in case of California and BC in case of British Columbia), while Japan's and China's provinces are shown as numbers (34 in case of Hiroshima and 11 in case of Beijing). This is by design - the ISO 3166-2 codes for Japan and China provinces are numeric (we're open to changing these to other abbreviations if such change would be useful for postal purposes, for example).

          You can change the address formatting so that it uses the full province name in Administer CiviCRM.

          Do reopen this issue with detailed info on how to reproduce this issue if my above guess of what you mean is wrong.

            People

            • Assignee:
              Piotr Szotkowski
              Reporter:
              Craig Fisk

              Dates

              • Created:
                Updated:
                Resolved: