This commit is contained in:
Laurent Destailleur 2020-03-09 09:14:25 +01:00
parent 6203e042b1
commit 84606f29c0
2 changed files with 3 additions and 2 deletions

View File

@ -206,9 +206,10 @@ class InterfaceLogevents extends DolibarrTriggers
else
{
$error ="Failed to insert security event: ".$event->error;
$this->errors[] = $error;
$this->error=$error;
dol_syslog(get_class($this).": ".$this->error, LOG_ERR);
dol_syslog(get_class($this).": ".$error, LOG_ERR);
return -1;
}
}

View File

@ -829,7 +829,7 @@ class InterfaceActionsAuto extends DolibarrTriggers
$object->sendtoid=0;
}
// TODO Merge all previous cases into this generic one
else // $action = TICKET_CREATE, TICKET_MODIFY, TICKET_DELETE, ...
else // $action = BILL_DELETE, TICKET_CREATE, TICKET_MODIFY, TICKET_DELETE, ...
{
// Note: We are here only if $conf->global->MAIN_AGENDA_ACTIONAUTO_action is on (tested at begining of this function). Key can be set in agenda setup if defined into c_action_trigger
// Load translation files required by the page