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

Make contact_id not required on Address Create API call

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Incomplete
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.5
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Contact id is set as a required field when creating an address throught the API.
      This doesn't allow us to create locblock programmatically, since the addresses used in the locblock don't have an attached contact_id.
      Solution is to remove line 100 in civicrm\api\v3\Address.php

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mallezie Tim Mallezie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: