diff --git a/platform/core/src/capabilities/PersistenceCapability.js b/platform/core/src/capabilities/PersistenceCapability.js index af21618ee3..186205aeb0 100644 --- a/platform/core/src/capabilities/PersistenceCapability.js +++ b/platform/core/src/capabilities/PersistenceCapability.js @@ -132,12 +132,17 @@ define( domainObject = this.domainObject, model = domainObject.getModel(), modified = model.modified, + persisted = model.persisted, cacheService = this.cacheService, persistenceService = this.persistenceService, persistenceFn = model.persisted !== undefined ? this.persistenceService.updateObject : this.persistenceService.createObject; + if (persisted !== undefined && persisted === modified) { + return this.$q.when(true); + } + // Update persistence timestamp... domainObject.useCapability("mutation", function (model) { model.persisted = modified;