Skip to content

Commit

Permalink
Merge pull request couchbaselabs#52 from martijnwalraven/master
Browse files Browse the repository at this point in the history
Attempt to fix couchbaselabs#28
  • Loading branch information
snej committed Oct 24, 2012
2 parents 896a259 + 8b4cf3d commit f3362a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/CouchModel.m
Expand Up @@ -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;
}
Expand Down

0 comments on commit f3362a7

Please sign in to comment.