Add a protection to avoid infinite loop when we will trigger ACTION_

This commit is contained in:
Laurent Destailleur 2020-11-12 12:55:09 +01:00
parent a168c3fbb1
commit 84cc0ef19b

View File

@ -84,6 +84,10 @@ class InterfaceActionsAuto extends DolibarrTriggers
if (empty($conf->global->$key)) {
return 0;
}
// Do not log events when trigger is for creating event (infinite loop)
if (preg_match('/^ACTION_/', $action)) {
return 0;
}
$langs->load("agenda");