Merge pull request #121 from Zentyal/ejhernandez/search-mapidb-message-props
oc: Search for properties in a SOGoMAPIDB object now workspull/79/head^2
commit
336c4fb9d3
|
@ -125,6 +125,11 @@ typedef BOOL (*EOComparator) (id, SEL, id);
|
|||
finalKey = @"";
|
||||
|
||||
propValue = [properties objectForKey: finalKey];
|
||||
/* sogo-openchange library stores the properties as NSString keys
|
||||
and we have to check if the property exists using the NSString */
|
||||
if (!propValue && [key isKindOfClass: [NSString class]])
|
||||
propValue = [properties objectForKey: key];
|
||||
|
||||
comparator = (EOComparator) [propValue methodForSelector: operator];
|
||||
|
||||
return (comparator ? comparator (propValue, operator, value) : NO);
|
||||
|
|
Loading…
Reference in New Issue