Update note.php
This commit is contained in:
parent
2a1eb97b7d
commit
9a6cafb3c5
@ -61,11 +61,12 @@ $permissionnote = $user->rights->don->creer; // Used by the include of actions_s
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
$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
|
||||||
|
}
|
||||||
|
|
||||||
if ($action == 'classin' && $user->rights->don->creer) {
|
if ($action == 'classin' && $user->rights->don->creer) {
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user