Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15018

Provinces/states show as numerical keys for Japan

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      This appears to be a regression of https://issues.civicrm.org/jira/browse/CRM-5040 (or possibly something that was never addressed, since that bug was closed without resolution).

      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 Japan, rather than a correct abbreviation. Did not test against other countries.

      This is demonstrated on the CiviCRM test site as of 2014-07-20. Here's the contact page:

      http://drupal.demo.civicrm.org/civicrm/contact/view?reset=1&cid=303

      The selected state/province is "Chiba", which should be shown as text. Instead, the ISO 30166-2 numerical code "12" is shown. This is not a valid representation for Chiba prefecture.

      A perusal of the civicrm_state_province table (where this information is stored) shows that all Japanese prefectures have numerical codes in the abbreviation column, so it's not just Chiba.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rjlang Robert J. Lang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: