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

In Addresses and Mailing Label Addresses, CiviContribute renders country as the ISO code and not country name.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 3.0
    • Fix Version/s: Unscheduled
    • Component/s: CiviContribute
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Addresses rendered into the Confirm and Thank You pages of CiviContribute render the billing country as the ISO3166 two letter code, and not as the human-readable name of the country. This is not the practice of either post offices or people in most countries.

      For example, here's an example from just released 3.0:

      My Left Toh
      40 Free Wi Fi Street
      Ho Chi Minh Q.1, 65
      VN

      The billing address was entered as "Vietnam", but it renders as "VN" in both the Confirm and Thank You pages.

      The problem here turns out to be how the country_id is processed in CRM_Contribute_Form_Contribution_Confirm::preProcess(). The enclosed patch resolves the issue.

      This has been tested against the Authorize.net payment processor.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              torenware Rob Thorne
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: