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

Problem 'double chaining', e.g. Contact.get - Relationship.get - Contact.get

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.24
    • Fix Version/s: 4.7.28
    • Component/s: CiviCRM API
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      When I use the Contact.get API, and I chain a Relationship.get call on 'contact_id_a' => '$value.id', and I chain another Contact.get on 'id' => '$value.contact_id_b' (this needs to be the first API param), the inner contact is not retrieved.

      The pull request contains two unit tests, of which one fails if you don't apply the fix.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: