diff --git a/htdocs/commande/note.php b/htdocs/commande/note.php index 41598249e8c..e5c98da9765 100644 --- a/htdocs/commande/note.php +++ b/htdocs/commande/note.php @@ -66,11 +66,12 @@ $permissionnote = $user->rights->commande->creer; // Used by the include of acti */ $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 +} /*