From bfee2e14d5b6ea6b0c55b557cc7a1a90fb7567fc Mon Sep 17 00:00:00 2001 From: Julian Carrivick Date: Thu, 18 Jan 2018 12:28:00 +0800 Subject: [PATCH] Fix #39 Apply fix as suggested by @woia to allow rejecting changes on entities which failed to save. --- breeze.savequeuing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breeze.savequeuing.js b/breeze.savequeuing.js index 012bdb1..0758a58 100644 --- a/breeze.savequeuing.js +++ b/breeze.savequeuing.js @@ -190,7 +190,7 @@ // added entities normally don't have original values but these will now var added = entities ? entities.filter(function (e) { return e.entityAspect.entityState.isAdded(); }) : - self.entityManager.getChanges(null, breeze.EntityState.Added); + self.entityManager.getEntities(null, breeze.EntityState.Added); added.forEach(function (entity) { var props = entity.entityType.dataProperties; var originalValues = entity.entityAspect.originalValues;