Add a protection to avoid infinite loop when we will trigger ACTION_
This commit is contained in:
parent
a168c3fbb1
commit
84cc0ef19b
@ -84,6 +84,10 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
if (empty($conf->global->$key)) {
|
if (empty($conf->global->$key)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
// Do not log events when trigger is for creating event (infinite loop)
|
||||||
|
if (preg_match('/^ACTION_/', $action)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
$langs->load("agenda");
|
$langs->load("agenda");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user