Commit 4d5f8296 authored by Andrei Mondoc's avatar Andrei Mondoc

add is_deleted and sequential flags

parent 25f6a8bc
......@@ -74,10 +74,12 @@ class CRM_Autofileoncase_AutoFile extends CRM_Autofileoncase_HookBase {
try {
$case = civicrm_api3('Case', 'get', [
'sequential' => 1,
'contact_id' => $activityTargets[0], // assume first contact
'status_id' => 'Open',
'is_deleted' => 0,
'options' => ['limit' => 1, 'sort' => 'id desc']
]);
])['values'][0];
} catch (CiviCRM_API3_Exception $e) {
// ignore exception
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment