Load ticket hook for comment details

This commit is contained in:
Eric Lippmann 2020-09-30 09:29:32 +02:00
parent 893617ef96
commit 1aad3152d0
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace Icinga\Module\Monitoring\Controllers; namespace Icinga\Module\Monitoring\Controllers;
use Icinga\Application\Hook;
use Icinga\Module\Monitoring\Controller; use Icinga\Module\Monitoring\Controller;
use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm; use Icinga\Module\Monitoring\Forms\Command\Object\DeleteCommentCommandForm;
use Icinga\Web\Url; use Icinga\Web\Url;
@ -58,6 +59,10 @@ class CommentController extends Controller
'url' =>'monitoring/comments/show' 'url' =>'monitoring/comments/show'
) )
)->activate('comment')->extend(new DashboardAction())->extend(new MenuAction()); )->activate('comment')->extend(new DashboardAction())->extend(new MenuAction());
if (Hook::has('ticket')) {
$this->view->tickets = Hook::first('ticket');
}
} }
/** /**