[Fix] re-run add model change commands in TX, as commands create new
This commit is contained in:
parent
4adac09ab5
commit
5c5a3afbbc
|
@ -891,6 +891,14 @@ public abstract class AbstractTransaction implements StrolchTransaction {
|
|||
addModelChangeCommands();
|
||||
validateCommands();
|
||||
doCommands();
|
||||
|
||||
// do it twice, since some commands might generate new model changes
|
||||
if (this.objectFilter != null && !this.objectFilter.isEmpty()) {
|
||||
addModelChangeCommands();
|
||||
validateCommands();
|
||||
doCommands();
|
||||
}
|
||||
|
||||
writeChanges();
|
||||
|
||||
long auditTrailDuration = writeAuditTrail();
|
||||
|
|
Loading…
Reference in New Issue