diff --git a/ChangeLog b/ChangeLog index 83557def3..2cfff9547 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-07-24 Wolfgang Sourdeau + * UI/Contacts/UIxContactsListView.m ([-displayName]): removed + method. + ([UIxContactsListView -defaultSortKey]): changed to "displayName". + * SoObjects/Contacts/SOGoContactLDAPFolder.m ([SOGoContactLDAPFolder -lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]): diff --git a/UI/Contacts/UIxContactsListView.m b/UI/Contacts/UIxContactsListView.m index 0ab859cad..940cbaa55 100644 --- a/UI/Contacts/UIxContactsListView.m +++ b/UI/Contacts/UIxContactsListView.m @@ -92,18 +92,7 @@ - (NSString *) defaultSortKey { - return @"fn"; -} - -- (NSString *) displayName -{ - NSString *displayName; - - displayName = [currentContact objectForKey: @"displayName"]; - if (!(displayName && [displayName length] > 0)) - displayName = [currentContact objectForKey: @"c_cn"]; - - return displayName; + return @"displayName"; } - (NSString *) sortKey @@ -137,10 +126,11 @@ else valueText = nil; - ASSIGN (contactInfos, - [folder lookupContactsWithFilter: valueText - sortBy: [self sortKey] - ordering: ordering]); + [contactInfos release]; + contactInfos = [folder lookupContactsWithFilter: valueText + sortBy: [self sortKey] + ordering: ordering]; + [contactInfos retain]; } return contactInfos; diff --git a/UI/Templates/ContactsUI/UIxContactsListView.wox b/UI/Templates/ContactsUI/UIxContactsListView.wox index 7d4836e5c..79df8ddf7 100644 --- a/UI/Templates/ContactsUI/UIxContactsListView.wox +++ b/UI/Templates/ContactsUI/UIxContactsListView.wox @@ -35,11 +35,11 @@ ondblclick="return onContactRowDblClick(event, this);" oncontextmenu="return onContactContextMenu(event, this);"> + /> - - - + + +