diff --git a/ChangeLog b/ChangeLog index 2caa260e4..e4f89ab81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-03-08 Wolfgang Sourdeau + + * SoObjects/Contacts/NGVCard+SOGo.m + (_setupEmailFieldsInLDIFRecord:): the value of card elements were + not properly extracted when no email field were of type "home" or + "work". + 2012-03-08 Francis Lachapelle * UI/WebServerResources/generic.js (getTopWindow): extend the diff --git a/SoObjects/Contacts/NGVCard+SOGo.m b/SoObjects/Contacts/NGVCard+SOGo.m index 250dc7e1a..b462ad147 100644 --- a/SoObjects/Contacts/NGVCard+SOGo.m +++ b/SoObjects/Contacts/NGVCard+SOGo.m @@ -375,9 +375,9 @@ convention: if (!mail) { - mail = [elements objectAtIndex: 0]; + mail = [[elements objectAtIndex: 0] flattenedValuesForKey: @""]; if (max > 1) /* we know secondEmail is not set here either... */ - secondEmail = [elements objectAtIndex: 1]; + secondEmail = [[elements objectAtIndex: 1] flattenedValuesForKey: @""]; } [self _setValue: @"mail" to: mail inLDIFRecord: ldifRecord];