mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-07 14:39:41 +00:00
Add "list" action to audit functionality and French translations
- Introduced `AUDIT_LIST` constant in `AuditTrail` entity to support "list" action auditing. - Updated French translations (`messages.fr.yml`) to include label for "list" action.
This commit is contained in:
@@ -24,6 +24,8 @@ class AuditTrail
|
||||
public const AUDIT_UPDATE = 'update';
|
||||
public const AUDIT_DELETE = 'delete';
|
||||
|
||||
public const AUDIT_LIST = 'list';
|
||||
|
||||
public function __construct(
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(name: 'id', type: 'uuid', unique: true)]
|
||||
|
||||
@@ -1018,6 +1018,7 @@ audit_trail:
|
||||
update: Mise à jour
|
||||
create: Création
|
||||
delete: Suppression
|
||||
list: Liste
|
||||
list:
|
||||
title: Liste des événements
|
||||
associated_subject: Entités associées
|
||||
|
||||
@@ -263,7 +263,7 @@ final class AccompanyingCourseApiController extends ApiController
|
||||
AuditTrail::AUDIT_DELETE,
|
||||
$accompanyingPeriod,
|
||||
description: new TranslatableMessage('audit.accompanying_period.remove_requestor'),
|
||||
metadata: ['t' => $accompanyingPeriod->getRequestorKind(), 'requestor' => $accompanyingPeriod->getRequestor()->getId()],
|
||||
metadata: ['t' => $accompanyingPeriod->getRequestorKind()],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user