From d8b9867400a4fb7a7616fd1c127958e6e79709a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Jul 2024 19:22:44 +0200 Subject: [PATCH] Fix missing old hook context for compatibility --- htdocs/societe/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index b4af53bb576..b75602bf4ec 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -206,7 +206,7 @@ if ($type == 'f') { // Initialize technical objects to manage hooks of page. Note that conf->hooks_modules contains array of hook context $object = new Societe($db); $extrafields = new ExtraFields($db); -$hookmanager->initHooks(array($contextpage)); +$hookmanager->initHooks(array($contextpage, 'thirdpartylist')); // Fetch optionals attributes and labels $extrafields->fetch_name_optionals_label($object->table_element);