Skip to content

Commit

Permalink
Update in ticket reply via api to trigger mail notification : uvdesk#40
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi12-gupta committed Jun 22, 2023
1 parent 047e0e7 commit b85caf9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion API/Threads.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@ public function saveThread(Request $request, $ticketid, ContainerInterface $cont
return new JsonResponse($json, Response::HTTP_OK);
break;
case 'reply':
$event = new CoreWorkflowEvents\Ticket\AgentReply();

if ($customer) {
$event = new CoreWorkflowEvents\Ticket\CustomerReply();
} else {
$event = new CoreWorkflowEvents\Ticket\AgentReply();
}

$event
->setTicket($ticket)
->setThread($thread)
Expand Down

0 comments on commit b85caf9

Please sign in to comment.