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

CiviCRM API should allow for creating addresses with no contact_id parameter to allow for importing civicrm_loc_block

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.4
    • Fix Version/s: 4.5
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      The API does not allow the user to create addresses with no contact_id parameter - leave contact_id NULL. However this is necessary to create addresses that will be used in events via civicrm_loc_block table.

      Alternately the API for creating the LocationBlock entity could allow passing parameters for address and phone fields directly rather than the foreign keys it now allows.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lola_slade Lola Slade
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: