[Edit Mode] Fix issue with navigation not triggering unsaved changes message for new objects. Removed logic that prevented mutation of new objects from triggering a transactional persist call. Fixes #1278

This commit is contained in:
Henry 2016-12-05 15:46:56 -08:00
parent 68d6920d38
commit 7dda85cc5f

View File

@ -40,7 +40,6 @@ define([], function () {
var wasActive = transactionService.isActive();
cacheService.put(domainObject.getId(), domainObject.getModel());
if (persistence.persisted()) {
if (!wasActive) {
transactionService.startTransaction();
}
@ -53,7 +52,6 @@ define([], function () {
if (!wasActive) {
transactionService.commit();
}
}
});
}