Skip to content
Browse files

This attr needs to be set also, or isModified is not updated for the …

…field
  • Loading branch information...
1 parent 6616ad4 commit c5d974ad0335ee71a986d30366baceab9134d6a3 @JoshuaGross committed Oct 29, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/mongoose-subpopulate.js
  2. +1 −1 package.json
View
1 lib/mongoose-subpopulate.js
@@ -363,6 +363,7 @@ function wrapModelObject (object) {
wrappedObject.populatedObjects[value._id] = value;
object.set(attr, value.mongooseLink);
} else {
+ object[attr] = value;
object._doc[attr] = value;
object.set(attr, value);
wrappedObject.set(attr, value);
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "mongoose-subpopulate",
- "version": "0.1.7",
+ "version": "0.1.8",
"main": "./lib/mongoose-subpopulate.js",
"scripts": {},
"repository": {

0 comments on commit c5d974a

Please sign in to comment.
Something went wrong with that request. Please try again.