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

limit and sort options don't work inside chained call to relationship API

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.6, 4.6
    • Fix Version/s: 4.6
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None

      Description

      If I call the API as follows:

      $result = civicrm_api3('Contact', 'get', array(
      'sequential' => 1,
      'return' => "sort_name",
      'id' => 109,
      'api.Relationship.get' => array('options' => array('limit' => 1)),
      ));

      I would expect that it would return at most 1 relationship, but it returns all relationships instead.

      The 'sort' option is ignored as well.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              johanv Johan Vervloet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: