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

Incorrect API results when searching for cases using client ID and other paramaters

    Details

    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When specifying a contact ID in the get case API, additional parameters you specify (e.g. the case status) are ignored, and all cases for that contact are returned.

      Have replicated using the api explorer on the demo site.

      Example that should filter by status_id but doesn't:

      {{$result = civicrm_api3('Case', 'get', array(
      'debug' => 1,
      'status_id' => "example",
      'contact_id' => 1,
      ));}}

      Same problem as reported on stack exchange: https://civicrm.stackexchange.com/questions/6957/why-doesnt-civicase-api-filter-by-case-status-when-the-client-is-specified

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              dotsam Samuel Haskell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: