Merge pull request #121 from Zentyal/ejhernandez/search-mapidb-message-props

oc: Search for properties in a SOGoMAPIDB object now works
This commit is contained in:
Jesús García Sáez
2015-04-16 18:51:18 +02:00
@@ -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);