Fix missing old hook context for compatibility

This commit is contained in:
Laurent Destailleur 2024-07-15 19:22:44 +02:00
parent 78ac402856
commit d8b9867400

View file

@ -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);