Fixed issue that prevented undo changes from being logged

This commit is contained in:
Jan Böhmer 2023-07-18 23:42:01 +02:00
parent 8116217019
commit eb07820523
2 changed files with 1 additions and 5 deletions

View file

@ -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;
}

View file

@ -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) }}