Save As clears transaction while undirtying (#1471)
* mutation listener adds via transaction manager Update the TransactingMutationListener to add items to a transaction using the transactionManager so that they can be properly removed from the transaction at a later date. Prevents showing error dialogs during successful save, and also prevents persisting duplicate objects. Fixes #1468
This commit is contained in:
committed by
Andrew Henry
parent
e9730ced9e
commit
e5fe8fd975
@@ -52,10 +52,7 @@ define([], function () {
|
||||
transactionService.startTransaction();
|
||||
}
|
||||
|
||||
transactionService.addToTransaction(
|
||||
persistence.persist.bind(persistence),
|
||||
persistence.refresh.bind(persistence)
|
||||
);
|
||||
persistence.persist();
|
||||
|
||||
if (!wasActive) {
|
||||
transactionService.commit();
|
||||
|
||||
Reference in New Issue
Block a user