Update note.php

This commit is contained in:
UT from dolibit 2022-08-24 23:25:15 +02:00 committed by GitHub
parent eb3a7b6ead
commit e97d7aa86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ if (!empty($conf->project->enabled)) {
}
// Load translation files required by the page
$langs->loadLangs(array("companies", "bills", "donations"));
$langs->loadLangs(array('companies', 'bills', 'donations'));
$id = (GETPOST('id', 'int') ?GETPOST('id', 'int') : GETPOST('facid', 'int')); // For backward compatibility
$ref = GETPOST('ref', 'alpha');
@ -60,6 +60,7 @@ $permissionnote = $user->rights->don->creer; // Used by the include of actions_s
/*
* Actions
*/
$reshook = $hookmanager->executeHooks('doActions', array(), $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) {
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
@ -73,6 +74,7 @@ if ($action == 'classin' && $user->rights->don->creer) {
$object->setProject($projectid);
}
/*
* View
*/