From 3e52a373baa9b1f7155efa720663ccb5ad38d9dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domagoj=20Hr=C5=BEi=C4=87?= <104624347+dhrzic@users.noreply.github.com> Date: Thu, 26 Mar 2026 11:51:48 +0100 Subject: [PATCH] Trigger notification event on ticket update/new task Added notification event trigger for ticket updates. --- src/Ticket.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ticket.php b/src/Ticket.php index ea83992..1026ef5 100644 --- a/src/Ticket.php +++ b/src/Ticket.php @@ -41,6 +41,7 @@ use Group_Ticket; use Group_User; use Html; +use NotificationEvent; use Planning; use Session; use Ticket_User; @@ -652,6 +653,10 @@ public function launchTicketTransfer($params) "transferticketentity" ) . " $theEntity " . $groupText ]); + //task created - trigger notification + if (class_exists('\NotificationEvent')) { + \NotificationEvent::raiseEvent('update', $ticket); + } $ticket = new \Ticket(); $ticket->getFromDB($params['id_ticket']);