From 9a6cafb3c5fb65929ae64f8d646776e81325a713 Mon Sep 17 00:00:00 2001 From: fr69400 <82267780+fr69400@users.noreply.github.com> Date: Sun, 11 Jul 2021 09:52:01 +0200 Subject: [PATCH] Update note.php --- htdocs/don/note.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/don/note.php b/htdocs/don/note.php index 03f2d687012..01a017d7b5d 100644 --- a/htdocs/don/note.php +++ b/htdocs/don/note.php @@ -61,11 +61,12 @@ $permissionnote = $user->rights->don->creer; // Used by the include of actions_s * Actions */ $reshook = $hookmanager->executeHooks('doActions', array(), $object, $action); // Note that $action and $object may have been modified by some hooks -if ($reshook < 0) +if ($reshook < 0) { setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); - -if (empty($reshook)) +} +if (empty($reshook)){ include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once +} if ($action == 'classin' && $user->rights->don->creer) { $object->fetch($id);