mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 22:53:18 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user