From 16feb2fe6edcbeee5fdd5c1c4eb12db7fb013f66 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Thu, 28 Dec 2023 11:19:55 +0100 Subject: [PATCH] fix: add missing hook in supplier tab of thirdparty (same as in customer/prospect tab) --- htdocs/fourn/card.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php index 66becc1fd45..6b7628abadf 100644 --- a/htdocs/fourn/card.php +++ b/htdocs/fourn/card.php @@ -870,6 +870,15 @@ if ($object->id > 0) { } } + // Allow external modules to add their own shortlist of recent objects + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreRecentObjects', $parameters, $object, $action); + if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + } else { + print $hookmanager->resPrint; + } + print ''; print '
';