This commit is contained in:
BB2A Anthony Berton 2022-03-12 23:41:16 +01:00
parent 899598bbb3
commit 316380afd2
2 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ class Notify
'EXPENSE_REPORT_APPROVE',
'HOLIDAY_VALIDATE',
'HOLIDAY_APPROVE',
'ACTION_CREATE',
'ACTION_CREATE'
);
/**
@ -363,7 +363,7 @@ class Notify
$hookmanager->initHooks(array('notification'));
$reshook = $hookmanager->executeHooks('notifsupported');
$reshook = $hookmanager->executeHooks('notifsupported', $parameters, $object, $action);
if (empty($reshook)) {
if (!empty($hookmanager->resArray['arrayofnotifsupported'])) {
Notify::$arrayofnotifsupported = array_merge(Notify::$arrayofnotifsupported, $hookmanager->resArray['arrayofnotifsupported']);

View File

@ -100,7 +100,7 @@ class InterfaceNotification extends DolibarrTriggers
}
$hookmanager->initHooks(array('notification'));
$reshook = $hookmanager->executeHooks('notifsupported');
$reshook = $hookmanager->executeHooks('notifsupported', $parameters, $object, $action);
if (empty($reshook)) {
if (!empty($hookmanager->resArray['arrayofnotifsupported'])) {
$this->listofmanagedevents = array_merge($this->listofmanagedevents, $hookmanager->resArray['arrayofnotifsupported']);