mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Show and link which log entry was undone/reverted on log detail page
This commit is contained in:
parent
47ef8e9568
commit
5a3fc0fb43
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue