Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
extensions
cc.tadpole.autofileoncase
Commits
4d5f8296
Commit
4d5f8296
authored
Oct 17, 2019
by
Andrei Mondoc
Browse files
add is_deleted and sequential flags
parent
25f6a8bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Autofileoncase/AutoFile.php
View file @
4d5f8296
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment