mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Add the data after the change to a element edited log entry, so you can easily view the changes in log detail pages
This commit is contained in:
parent
3c724a227a
commit
923e40ed8f
14 changed files with 136 additions and 22 deletions
|
@ -73,13 +73,13 @@ class RevertLogColumn extends AbstractColumn
|
|||
{
|
||||
if (
|
||||
$context instanceof CollectionElementDeleted
|
||||
|| ($context instanceof ElementDeletedLogEntry && $context->hasOldDataInformations())
|
||||
|| ($context instanceof ElementDeletedLogEntry && $context->hasOldDataInformation())
|
||||
) {
|
||||
$icon = 'fa-trash-restore';
|
||||
$title = $this->translator->trans('log.undo.undelete');
|
||||
} elseif (
|
||||
$context instanceof ElementCreatedLogEntry
|
||||
|| ($context instanceof ElementEditedLogEntry && $context->hasOldDataInformations())
|
||||
|| ($context instanceof ElementEditedLogEntry && $context->hasOldDataInformation())
|
||||
) {
|
||||
$icon = 'fa-undo';
|
||||
$title = $this->translator->trans('log.undo.undo');
|
||||
|
|
|
@ -236,7 +236,7 @@ class LogDataTable implements DataTableTypeInterface
|
|||
'href' => function ($value, AbstractLogEntry $context) {
|
||||
if (
|
||||
($context instanceof TimeTravelInterface
|
||||
&& $context->hasOldDataInformations())
|
||||
&& $context->hasOldDataInformation())
|
||||
|| $context instanceof CollectionElementDeleted
|
||||
) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue