Monotone-Parent: 535ca06ba5fc04d3cf56ee0db455b20d6440c6af

Monotone-Revision: f76b30d3c9c04252e5fed0d8188d8597e78d089d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-09-26T18:39:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-09-26 18:39:04 +00:00
parent 6b62be381a
commit ba7387c39b
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2006-09-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
-vCard]): set the card's fn to attribute "displayName" if found
before "cn".
2006-09-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactLDAPEntry.m ([SOGoContactLDAPEntry
+4 -1
View File
@@ -143,7 +143,10 @@
[vcard setVClass: @"PUBLIC"];
[vcard setProdID: @"-//OpenGroupware.org//SOGo"];
[vcard setProfile: @"vCard"];
[vcard setFn: [ldapEntry singleAttributeWithName: @"cn"]];
info = [ldapEntry singleAttributeWithName: @"displayName"];
if (!(info && [info length] > 0))
info = [ldapEntry singleAttributeWithName: @"cn"];
[vcard setFn: info];
surname = [ldapEntry singleAttributeWithName: @"sn"];
if (!surname)
surname = [ldapEntry singleAttributeWithName: @"surname"];