From 893617ef964a20f60e2c6a1dc2cc7bf2a07ce4f1 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 30 Sep 2020 09:27:16 +0200 Subject: [PATCH] Load ticket hook for event details --- .../monitoring/application/controllers/EventController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/monitoring/application/controllers/EventController.php b/modules/monitoring/application/controllers/EventController.php index b2ecd0754..cdd13dea1 100644 --- a/modules/monitoring/application/controllers/EventController.php +++ b/modules/monitoring/application/controllers/EventController.php @@ -40,6 +40,13 @@ class EventController extends Controller 'dt_end' => 'downtimeevent' ); + public function init() + { + if (Hook::has('ticket')) { + $this->view->tickets = Hook::first('ticket'); + } + } + public function showAction() { $type = $this->params->shiftRequired('type');