From 1fe00b795c7f1fdbe5b3ff79f43dd58ae599f273 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 9 Mar 2012 04:17:09 +0000 Subject: [PATCH] Monotone-Parent: 71440e99d4aaef941747ff066471092846387f65 Monotone-Revision: 37d86b8e5ad24c1858630f995fbaac5a979617e2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-09T04:17:09 --- ChangeLog | 7 +++++++ SoObjects/Contacts/NGVCard+SOGo.m | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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];