[Minor] Auto commit in SimpleExecution.runWithFreshAction()

This commit is contained in:
Robert von Burg 2020-10-15 12:25:25 +02:00
parent 635115164e
commit 482330bdc8
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ public class SimpleExecution extends ExecutionPolicy {
tx.lock(this.actionLoc.trim(3));
Action action = tx.findElement(this.actionLoc);
consumer.accept(tx, action);
if (!readOnly && tx.needsCommit())
tx.commitOnClose();
}
});
} catch (Exception e) {