mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 19:48:53 +00:00
Monotone-Parent: 6aa48a9460ff6651bbf7588fab4d7abc1370f223
Monotone-Revision: c5cc88dd452d75edebb6730bdb60d21a0facec48 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-24T19:59:49 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2007-07-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Contacts/UIxContactsListView.m ([-displayName]): removed
|
||||
method.
|
||||
([UIxContactsListView -defaultSortKey]): changed to "displayName".
|
||||
|
||||
* SoObjects/Contacts/SOGoContactLDAPFolder.m
|
||||
([SOGoContactLDAPFolder
|
||||
-lookupContactsWithFilter:filtersortBy:sortKeyordering:sortOrdering]):
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
ondblclick="return onContactRowDblClick(event, this);"
|
||||
oncontextmenu="return onContactContextMenu(event, this);">
|
||||
<td><img rsrc:src="abcard.gif"
|
||||
/><var:string value="displayName" const:escapeHTML="YES" /></td>
|
||||
/><var:string value="currentContact.displayName" const:escapeHTML="YES" /></td>
|
||||
<td><var:string value="currentContact.mail"/></td>
|
||||
<td><var:string value="currentContact.screenname"/></td>
|
||||
<td><var:string value="currentContact.o"/></td>
|
||||
<td><var:string value="currentContact.telephonenumber"/></td>
|
||||
<td><var:string value="currentContact.screenName"/></td>
|
||||
<td><var:string value="currentContact.org"/></td>
|
||||
<td><var:string value="currentContact.phone"/></td>
|
||||
</tr>
|
||||
</var:foreach>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user