diff --git a/lib/types/subdocument.js b/lib/types/subdocument.js index cf295c2895a..37da6965576 100644 --- a/lib/types/subdocument.js +++ b/lib/types/subdocument.js @@ -46,7 +46,7 @@ Subdocument.prototype.$isValid = function(path) { Subdocument.prototype.markModified = function(path) { Document.prototype.markModified.call(this, path); if (this.$parent) { - if (this.$parent.isModified(this.$basePath)) { + if (this.$parent.isDirectModified(this.$basePath)) { return; } this.$parent.markModified([this.$basePath, path].join('.'));