Show and link which log entry was undone/reverted on log detail page

This commit is contained in:
Jan Böhmer 2023-05-15 22:42:08 +02:00
parent 47ef8e9568
commit 5a3fc0fb43
2 changed files with 6 additions and 2 deletions

View file

@ -131,9 +131,9 @@ class LogEntryExtraFormatter
if (($context instanceof LogWithEventUndoInterface) && $context->isUndoEvent()) {
if ('undo' === $context->getUndoMode()) {
$array['log.undo_mode.undo'] = (string) $context->getUndoEventID();
$array['log.undo_mode.undo'] = '#' . $context->getUndoEventID();
} elseif ('revert' === $context->getUndoMode()) {
$array['log.undo_mode.revert'] = (string) $context->getUndoEventID();
$array['log.undo_mode.revert'] = '#' . $context->getUndoEventID();
}
}