Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.10
-
Fix Version/s: 4.7
-
Component/s: CiviCase, CiviCRM API
-
Labels:
-
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