From 76c9b25569e97a805a922fcdf045cf86e4e38f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= <142790847+clementgde@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:13:38 +0100 Subject: [PATCH] Add doActions on project documents --- htdocs/projet/document.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php index 83c5416ceea1d..6fd7fd8071702 100644 --- a/htdocs/projet/document.php +++ b/htdocs/projet/document.php @@ -101,6 +101,12 @@ * Actions */ +$parameters = array(); +$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks +if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); +} + include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';