Skip to content
Permalink
Browse files

Audit Agent replies

- Agent response to tickets
- Agent response to tasks
- Agent note to tickets
- Agent note to tasks
  • Loading branch information...
aydreeihn committed Jul 16, 2019
1 parent d942b16 commit 2aacbd1abe4a99db484c9f4f5e88a6c64ff5817e
Showing with 20 additions and 0 deletions.
  1. +10 −0 include/class.task.php
  2. +10 −0 include/class.ticket.php
@@ -971,6 +971,11 @@ function postNote($vars, &$errors, $poster='', $alert=true) {
'assignee' => $assignee
), $alert);
if (PluginManager::auditPlugin()) {
$type = array('type' => 'note');
Signal::send('object.created', $this, $type);
}
return $note;
}
@@ -1026,6 +1031,11 @@ function postReply($vars, &$errors, $alert = true) {
);
}
if (PluginManager::auditPlugin()) {
$type = array('type' => 'message');
Signal::send('object.created', $this, $type);
}
return $response;
}
@@ -3339,6 +3339,11 @@ function postReply($vars, &$errors, $alert=true, $claim=true) {
$this->onResponse($response, array('assignee' => $assignee)); //do house cleaning..
if (PluginManager::auditPlugin()) {
$type = array('type' => 'message');
Signal::send('object.created', $this, $type);
}
/* email the user?? - if disabled - then bail out */
if (!$alert)
return $response;
@@ -3477,6 +3482,11 @@ function postNote($vars, &$errors, $poster=false, $alert=true) {
'assignee' => $assignee
), $alert);
if (PluginManager::auditPlugin()) {
$type = array('type' => 'note');
Signal::send('object.created', $this, $type);
}
return $note;
}

0 comments on commit 2aacbd1

Please sign in to comment.
You can’t perform that action at this time.