Update interface_20_all_Logevents.class.php

This commit is contained in:
Laurent Destailleur 2023-08-09 13:21:56 +02:00 committed by GitHub
parent 155848585f
commit 10e2a35aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,7 @@ class InterfaceLogevents extends DolibarrTriggers
/* Actions */
$txt = $action;
$langs->load("users");
// USER_LOGIN
@ -167,15 +168,6 @@ class InterfaceLogevents extends DolibarrTriggers
$desc = $langs->transnoentities("GroupDeleted", $object->name);
}
// If not found
/*
else
{
dol_syslog("Trigger '".$this->name."' for action '$action' was ran by ".__FILE__." but no handler found for this action.");
return 0;
}
*/
// Add more information into desc from the context property
if (!empty($desc) && !empty($object->context['audit'])) {
$desc .= ' - '.$object->context['audit'];