From 1aad3152d0fb3d1b3c36d72b1f5d4ac3ee8a3b7b Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 30 Sep 2020 09:29:32 +0200 Subject: [PATCH] Load ticket hook for comment details --- .../monitoring/application/controllers/CommentController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/monitoring/application/controllers/CommentController.php b/modules/monitoring/application/controllers/CommentController.php index 55886e6d3..e50473fb6 100644 --- a/modules/monitoring/application/controllers/CommentController.php +++ b/modules/monitoring/application/controllers/CommentController.php @@ -3,6 +3,7 @@ namespace Icinga\Module\Monitoring\Controllers; +use Icinga\Application\Hook; use Icinga\Module\Monitoring\Controller; use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm; use Icinga\Web\Url; @@ -58,6 +59,10 @@ class CommentController extends Controller 'url' =>'monitoring/comments/show' ) )->activate('comment')->extend(new DashboardAction())->extend(new MenuAction()); + + if (Hook::has('ticket')) { + $this->view->tickets = Hook::first('ticket'); + } } /**