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

oc: Search for properties in a SOGoMAPIDB object now works
pull/79/head^2
Jesús García Sáez 2015-04-16 18:51:18 +02:00
commit 336c4fb9d3
1 changed files with 5 additions and 0 deletions

View File

@ -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);