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

Create Location API should accept the same parameters for state_province and country as create contact API

    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.

        Attachments

          Activity

            People

            • Assignee:
              manish Manish Zope
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: