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

API Explorer - Address - Province ID - Localized province name

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Needs Funding
    • Verified?:
      Yes

      Description

      With a French CiviCRM UI, the following API query (made by the API explorer) fails:

        $result = civicrm_api3('Address', 'create', array(
            'sequential' => 1,
            'contact_id' => "user_contact_id",
            'country_id' => "CH",
            'state_province_id' => "Geneva",
            'location_type_id' => "Home",
        ));
      

      IMHO it should use numerical state_province_id, as it's robust at localized sites too. As if i execute the same with numerical province id, the address is just created.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Aron Novak Aron Novak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: