Permalink
Browse files

Merge pull request #52 from martijnwalraven/master

Attempt to fix #28
  • Loading branch information...
2 parents 896a259 + 8b4cf3d commit f3362a7c9edac5696e31fb4b0eb139a0d6dc1b28 @snej snej committed Oct 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Model/CouchModel.m
View
@@ -320,8 +320,8 @@ - (void) cacheValue: (id)value ofProperty: (NSString*)property changed: (BOOL)ch
- (id) getValueOfProperty: (NSString*)property {
id value = [_properties objectForKey: property];
- if (!value && ![_changedNames containsObject: property]) {
- value = [_document propertyForKey: property];
+ if (!value && !self.isNew && ![_changedNames containsObject: property]) {
+ value = [_document propertyForKey: property];
}
return value;
}

0 comments on commit f3362a7

Please sign in to comment.