Skip to content

Commit

Permalink
Fix #39
Browse files Browse the repository at this point in the history
Apply fix as suggested by @woia to allow rejecting changes on entities
which failed to save.
  • Loading branch information
jcarrivick-adapt committed Jan 18, 2018
1 parent 9bf796e commit 2d28d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion breeze.savequeuing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d28d7f

Please sign in to comment.