Fix mail attribute when importing an LDIF file

Fixes #3878
pull/228/head
Francis Lachapelle 2016-11-30 16:06:09 -05:00
parent 7705c11cf7
commit f7dd835f92
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@ -11,6 +11,7 @@ Enhancements
Bug fixes
- [web] fixed JavaScript exception when SOGo is launched from an external link (#3900)
- [web] restored fetching of freebusy information of MS Exchange contacts
- [web] fixed mail attribute when importing an LDIF file (#3878)
3.2.3 (2016-11-25)
------------------

View File

@ -242,6 +242,10 @@ convention:
[self addElementWithTag: @"email"
ofType: @"work"
withValue: [ldifRecord objectForKey: @"c_emails"]];
// When importing an LDIF file, add the default mail attribute
[self addElementWithTag: @"email"
ofType: @"work"
withValue: [ldifRecord objectForKey: @"mail"]];
homeMail = [self elementWithTag: @"email" ofType: @"home"];
[homeMail setSingleValue: [ldifRecord objectForKey: @"mozillasecondemail"] forKey: @""];
[[self uniqueChildWithTag: @"x-mozilla-html"]