diff --git a/htdocs/expedition/note.php b/htdocs/expedition/note.php index 804a4fbc829..314633a53d0 100644 --- a/htdocs/expedition/note.php +++ b/htdocs/expedition/note.php @@ -79,11 +79,12 @@ $result = restrictedArea($user, 'expedition', $object->id, ''); */ $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 +} /*