diff --git a/htdocs/supplier_proposal/note.php b/htdocs/supplier_proposal/note.php index dcd529a951f..ce13a4f078a 100644 --- a/htdocs/supplier_proposal/note.php +++ b/htdocs/supplier_proposal/note.php @@ -61,11 +61,12 @@ $object = new SupplierProposal($db); $permissionnote = $user->rights->supplier_proposal->creer; // Used by the include of actions_setnotes.inc.php $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 +} /*