diff --git a/htdocs/fourn/facture/note.php b/htdocs/fourn/facture/note.php index e4dbea9a98a..0f6751384e0 100644 --- a/htdocs/fourn/facture/note.php +++ b/htdocs/fourn/facture/note.php @@ -60,11 +60,12 @@ $permissionnote = ($user->rights->fournisseur->facture->creer || $user->rights-> */ $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 +} // Set label if ($action == 'setlabel' && ($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer)) {