GP-3213: Prevent trace.undo where it might cause inconsistencies.

This commit is contained in:
Dan 2023-04-26 12:09:39 -04:00
parent 8aa9c8be3a
commit c0835bf903
3 changed files with 11 additions and 3 deletions

View file

@ -175,6 +175,7 @@ public class DBTrace extends DBCachedDomainObjectAdapter implements Trace, Trace
e.unwrap(LanguageNotFoundException.class);
throw new AssertionError(e);
}
clearUndo(false);
changeSet = traceChangeSet = new DBTraceChangeSet();
recordChanges = true;
@ -194,6 +195,7 @@ public class DBTrace extends DBCachedDomainObjectAdapter implements Trace, Trace
e.unwrap(LanguageNotFoundException.class);
throw new AssertionError(e);
}
clearUndo(false);
changeSet = traceChangeSet = new DBTraceChangeSet();
recordChanges = true;