Skip to content

Commit

Permalink
Fixed an issue with aggregate actions not being performed in the spec…
Browse files Browse the repository at this point in the history
…ified context
  • Loading branch information
Brian King committed Sep 7, 2012
1 parent 8de4ba8 commit 9348ef5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ + (NSNumber *) MR_aggregateOperation:(NSString *)function onAttribute:(NSString
[request setPropertiesToFetch:properties];
[request setResultType:NSDictionaryResultType];

NSDictionary *resultsDictionary = [self MR_executeFetchRequestAndReturnFirstObject:request];
NSDictionary *resultsDictionary = [self MR_executeFetchRequestAndReturnFirstObject:request inContext:context];
NSNumber *resultValue = [resultsDictionary objectForKey:@"result"];

return resultValue;
Expand Down

0 comments on commit 9348ef5

Please sign in to comment.