Update note.php
This commit is contained in:
parent
48846888cc
commit
ce4cab04d4
@ -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
|
$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');
|
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
|
include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not include_once
|
||||||
|
}
|
||||||
|
|
||||||
// Set label
|
// Set label
|
||||||
if ($action == 'setlabel' && ($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer)) {
|
if ($action == 'setlabel' && ($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user