Permalink
Browse files

Fixed: Adding/removing an attachment didn't trigger a save of a Couch…

…Model.

Change-Id: I4ac8ad86dbaf486c4442a9f3a5803fc3c652064c
  • Loading branch information...
1 parent 42e92da commit afbe88323b15da4cd39cab5252ab07c14395625a @snej snej committed Nov 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 Model/CouchModel.m
View
@@ -396,6 +396,7 @@ - (CouchAttachment*) createAttachmentWithName: (NSString*)name
_changedAttachments = [[NSMutableDictionary alloc] init];
[_changedAttachments setObject: (attach ? attach : [NSNull null])
forKey: name];
+ [self markNeedsSave];
return attach;
}

0 comments on commit afbe883

Please sign in to comment.