From 781f65ffc36a8276065769a8f34c78aaded35036 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 20 Oct 2006 21:14:49 +0000 Subject: [PATCH] Monotone-Parent: 66637dd9fbad7528514f958ca2e14068c4dc2386 Monotone-Revision: 80b9eb72427bb0152c01595e9c20c8fc8513d18f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-20T21:14:49 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/Contacts/SOGoContactLDAPFolder.m | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9ab2ea19b..b75ddfff7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-10-20 Wolfgang Sourdeau + * SoObjects/Contacts/SOGoContactLDAPFolder.m + ([SOGoContactLDAPFolder + -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): perform the searchs on objects which start with instead of contain the lookup key. + * SoObjects/Appointments/SOGoAptMailNotification.[hm]: work on iCalEntityObject instances instead of just iCalEvent's. diff --git a/SoObjects/Contacts/SOGoContactLDAPFolder.m b/SoObjects/Contacts/SOGoContactLDAPFolder.m index d9e621cd9..d4a1080e5 100644 --- a/SoObjects/Contacts/SOGoContactLDAPFolder.m +++ b/SoObjects/Contacts/SOGoContactLDAPFolder.m @@ -331,12 +331,12 @@ if (filter && [filter length] > 0) { qs = [NSString stringWithFormat: - @"(cn='*%@*')" - @"OR (sn='*%@*')" - @"OR (displayName='*%@*')" - @"OR (mail='*%@*')" + @"(cn='%@*')" + @"OR (sn='%@*')" + @"OR (displayName='%@*')" + @"OR (mail='%@*')" @"OR (telephoneNumber='*%@*')", - filter, filter, filter, filter]; + filter, filter, filter, filter, filter]; qualifier = [EOQualifier qualifierWithQualifierFormat: qs]; } else