From bb2cd79657139632ad51ec40bcadd1a40bfa536e Mon Sep 17 00:00:00 2001 From: HENRY Florian Date: Tue, 10 Sep 2024 02:18:16 +0200 Subject: [PATCH] fix: add missing hook init in Ticket Agenda/Messaging (#30888) * fix: add missing hook init in Ticket Agenda/Messaging * fix: add missing hook init in Ticket Agenda/Messaging * fix: CI --------- Co-authored-by: Laurent Destailleur --- htdocs/ticket/agenda.php | 1 + htdocs/ticket/messaging.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/htdocs/ticket/agenda.php b/htdocs/ticket/agenda.php index 81f1d0b0ac6..fe770fbe413 100644 --- a/htdocs/ticket/agenda.php +++ b/htdocs/ticket/agenda.php @@ -77,6 +77,7 @@ if (GETPOST('actioncode', 'array')) { $search_rowid = GETPOST('search_rowid'); $search_agenda_label = GETPOST('search_agenda_label'); +$hookmanager->initHooks(array('ticketagenda', 'globalcard')); // Note that conf->hooks_modules contains array $object = new Ticket($db); $object->fetch($id, $ref, $track_id); diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php index 024637664a3..d2b2d6688cc 100644 --- a/htdocs/ticket/messaging.php +++ b/htdocs/ticket/messaging.php @@ -76,6 +76,8 @@ if (GETPOST('actioncode', 'array')) { $search_rowid = GETPOST('search_rowid'); $search_agenda_label = GETPOST('search_agenda_label'); + +$hookmanager->initHooks(array('ticketmessaging', 'globalcard')); // Note that conf->hooks_modules contains array $object = new Ticket($db); $object->fetch($id, $ref, $track_id);