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

Accept state_province_id without state_province in CRM_Utils_Geocode_*

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.16
    • Fix Version/s: 4.7.18
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Both the Yahoo and Google geocoders have an oddity in their ::format() implementation.

      In the first parameter, they accept a named value 'state_province_id', and resolve this to a state_province name - but only if there's already a non-empty state_province passed in.

      This either leads to passing in a nonsense value to trigger resolution of a state province ID, or ignoring the passed in value.

        Attachments

          Activity

            People

            • Assignee:
              xurizaemon Chris Burgess
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: