Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.3
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
Description
Currently you can pass state_province and country to crm_create_contact like this:
'state_province'=> 'CA',
'country' => 'US',
However, crm_create_location only works with the Foreign Keys:
'state_province_id'=> 1004,
'country_id' => 1228
We need to modify crm_create_location so it can accept the key values (same as create_contact).
You can test this w/ test/CRM/api/CRM778.php.