Load ticket hook for event details

This commit is contained in:
Eric Lippmann 2020-09-30 09:27:16 +02:00
parent e5af1684a0
commit 893617ef96

View File

@ -40,6 +40,13 @@ class EventController extends Controller
'dt_end' => 'downtimeevent' 'dt_end' => 'downtimeevent'
); );
public function init()
{
if (Hook::has('ticket')) {
$this->view->tickets = Hook::first('ticket');
}
}
public function showAction() public function showAction()
{ {
$type = $this->params->shiftRequired('type'); $type = $this->params->shiftRequired('type');