From 09c355c38c55dfe50313b1b7b720a7ccfb2a449c Mon Sep 17 00:00:00 2001 From: jyhere Date: Thu, 16 Feb 2023 14:39:39 +0100 Subject: [PATCH] [FIX]: missing initHooks in adherents/agenda.php --- htdocs/adherents/agenda.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/adherents/agenda.php b/htdocs/adherents/agenda.php index 918eaa5d27e..4ae7ebf7566 100644 --- a/htdocs/adherents/agenda.php +++ b/htdocs/adherents/agenda.php @@ -71,6 +71,9 @@ $search_agenda_label = GETPOST('search_agenda_label'); // Get object canvas (By default, this is not defined, so standard usage of dolibarr) $objcanvas = null; +// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context +$hookmanager->initHooks(array('memberagenda')); + // Security check $result = restrictedArea($user, 'adherent', $id);