diff --git a/SoObjects/Contacts/SOGoContactLDAPFolder.m b/SoObjects/Contacts/SOGoContactLDAPFolder.m index b7d9cdfb9..3e28d9230 100644 --- a/SoObjects/Contacts/SOGoContactLDAPFolder.m +++ b/SoObjects/Contacts/SOGoContactLDAPFolder.m @@ -24,7 +24,6 @@ #import #import #import -#import #import #import @@ -188,10 +187,8 @@ NSEnumerator *oldRecords; NSDictionary *oldRecord; NSMutableDictionary *newRecord; - NSString *data, *contactInfo; - NSUserDefaults *ud; + NSString *data; - ud = [NSUserDefaults standardUserDefaults]; newRecords = [[NSMutableArray alloc] initWithCapacity: [records count]]; [newRecords autorelease]; @@ -240,13 +237,6 @@ data = @""; [newRecord setObject: data forKey: @"phone"]; - contactInfo = [ud stringForKey: @"SOGoLDAPContactInfoAttribute"]; - if ([contactInfo length] > 0) { - data = [oldRecord objectForKey: contactInfo]; - if ([data length] > 0) - [newRecord setObject: data forKey: @"contactInfo"]; - } - [newRecords addObject: newRecord]; oldRecord = [oldRecords nextObject]; } diff --git a/SoObjects/SOGo/LDAPSource.m b/SoObjects/SOGo/LDAPSource.m index 4f7ed3b6a..dfc37d341 100644 --- a/SoObjects/SOGo/LDAPSource.m +++ b/SoObjects/SOGo/LDAPSource.m @@ -23,7 +23,6 @@ #import #import #import -#import #import #import @@ -395,12 +394,8 @@ static int sizeLimit; - (NSArray *) _searchAttributes { - NSUserDefaults *ud; - NSString *contactInfo; - if (!searchAttributes) { - ud = [NSUserDefaults standardUserDefaults]; searchAttributes = [NSMutableArray new]; if (CNField) [searchAttributes addObject: CNField]; @@ -409,12 +404,6 @@ static int sizeLimit; [searchAttributes addObjectsFromArray: mailFields]; [searchAttributes addObjectsFromArray: [self _contraintsFields]]; [searchAttributes addObjectsFromArray: commonSearchFields]; - - // Add SOGoLDAPContactInfoAttribute from user defaults - contactInfo = [ud stringForKey: @"SOGoLDAPContactInfoAttribute"]; - if ([contactInfo length] > 0 && - ![searchAttributes containsObject: contactInfo]) - [searchAttributes addObject: contactInfo]; } return searchAttributes; diff --git a/UI/WebServerResources/UIxMailEditor.js b/UI/WebServerResources/UIxMailEditor.js index ba924ea1f..64b970e37 100644 --- a/UI/WebServerResources/UIxMailEditor.js +++ b/UI/WebServerResources/UIxMailEditor.js @@ -437,12 +437,6 @@ function performSearchCallback(http) { list.appendChild(node); node.uid = contact["c_uid"]; node.appendChild(document.createTextNode(completeEmail)); - log($H(contact).inspect() + ""); - if (contact["contactInfo"]) { - var info = new Element('span').update(contact['contactInfo']); - node.appendChild(info); - log ("info = " + contact['contactInfo']); - } $(node).observe("mousedown", onAddressResultClick); }