mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed issue that prevented undo changes from being logged
This commit is contained in:
parent
8116217019
commit
eb07820523
2 changed files with 1 additions and 5 deletions
|
@ -244,7 +244,7 @@ class EventLoggerSubscriber implements EventSubscriber
|
|||
$changeSet = $uow->getEntityChangeSet($entity);
|
||||
|
||||
//Skip log entry, if only the lastModified field has changed...
|
||||
if (isset($changeSet['lastModified']) && count($changeSet)) {
|
||||
if (count($changeSet) === 1 && isset($changeSet['lastModified'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
{% import "log_system/details/helper.macro.html.twig" as log_helper %}
|
||||
|
||||
{% if entry.undoEvent %}
|
||||
<span class="badge badge-info bg-info">Test</span>
|
||||
{% endif %}
|
||||
|
||||
{{ log_helper.comment_field(entry) }}
|
||||
|
||||
{{ log_helper.data_change_table(entry) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue