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

Need 'access deleted contacts' permission to retrieve loc block addresses using API

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      If you want to retrieve an address using the API like this:
      $result = civicrm_api3('Address', 'get', ['id' => $myAddressId]);

      And if this address is a loc block address (e.g. the location of an event), no address will be retrieved, because 'contact_id' of a loc block address is NULL.

      I have a hacky patch to work around this; I will post it in a minute.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              johanv Johan Vervloet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: