See ChangeLog.

Monotone-Parent: 82cf74276a48a04d2d3bb16da3ed5b73576a77ef
Monotone-Revision: 1f900dd9f1637dad2237767e5a65271c06b27df0

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-12-12T15:43:17
This commit is contained in:
Francis Lachapelle
2011-12-12 15:43:17 +00:00
parent 3d3392b67b
commit c22167ba87
3 changed files with 25 additions and 3 deletions
+8
View File
@@ -1,3 +1,11 @@
2011-12-12 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Contacts/SOGoContactGCSFolder.m
(-fixupContactRecord:): fallback on organization name when the
contact has no display name, no firstname, and no lastname.
* UI/Contacts/UIxContactView.m (-fullName): idem.
2011-12-09 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MainUI/SOGoRootPage.m (_cookieWithUsername:): the SOGoLogin
+9 -1
View File
@@ -212,7 +212,15 @@ static NSArray *folderListingFields = nil;
if (![data length])
{
data = [contactRecord keysWithFormat: @"%{c_givenname} %{c_sn}"];
[contactRecord setObject: data forKey: @"c_cn"];
if ([data length] > 1)
{
[contactRecord setObject: data forKey: @"c_cn"];
}
else
{
data = [contactRecord objectForKey: @"c_o"];
[contactRecord setObject: data forKey: @"c_cn"];
}
}
if (![contactRecord objectForKey: @"c_mail"])
+8 -2
View File
@@ -104,7 +104,7 @@
- (NSString *) fullName
{
CardElement *n;
NSString *fn, *firstName, *lastName;
NSString *fn, *firstName, *lastName, *org;
fn = [card fn];
if ([fn length] == 0)
@@ -119,8 +119,14 @@
else
fn = firstName;
}
else
else if ([lastName length] > 0)
fn = lastName;
else
{
n = [card org];
org = [n flattenedValueAtIndex: 0 forKey: @""];
fn = org;
}
}
return fn;