Details
-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.7.9
-
Fix Version/s: Unscheduled
-
Component/s: CiviCRM API
-
Labels:
-
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.