MR_findByAttribute:withValue:andOrderBy:ascending:inContext: doesn't use context #287

Closed
smic opened this Issue Oct 21, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@smic

smic commented Oct 21, 2012

Missing inContext: in the method body of MR_findByAttribute:withValue:andOrderBy:ascending:inContext:

diff --git a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
index a92eef2..1bdb491 100644
--- a/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
+++ b/MagicalRecord/Categories/NSManagedObject/NSManagedObject+MagicalFinders.m
@@ -198,7 +198,7 @@
        NSPredicate *searchTerm = [NSPredicate predicateWithFormat:@"%K = %@", attribute, searchValue];
        NSFetchRequest *request = [self MR_requestAllSortedBy:sortTerm ascending:ascending withPredicate:searchTerm inContext:context];

-       return [self MR_executeFetchRequest:request];
+       return [self MR_executeFetchRequest:request inContext:context];
 }

 + (NSArray *) MR_findByAttribute:(NSString *)attribute withValue:(id)searchValue andOrderBy:(NSString *)sortTerm ascending:(BOOL)ascending

blackgold9 added a commit that referenced this issue Oct 21, 2012

@blackgold9

This comment has been minimized.

Show comment
Hide comment
@blackgold9

blackgold9 Oct 21, 2012

Contributor

Fixed in develop branch

Contributor

blackgold9 commented Oct 21, 2012

Fixed in develop branch

@blackgold9 blackgold9 closed this Oct 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment