From b5b9d596f0638c89d3815a594cf6c79d13a7c422 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 11 May 2016 10:16:34 -0400 Subject: [PATCH] (fix) handle multi-value org units --- SoObjects/Contacts/NGVCard+SOGo.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SoObjects/Contacts/NGVCard+SOGo.m b/SoObjects/Contacts/NGVCard+SOGo.m index e811c7d7a..3053aa60f 100644 --- a/SoObjects/Contacts/NGVCard+SOGo.m +++ b/SoObjects/Contacts/NGVCard+SOGo.m @@ -293,7 +293,9 @@ convention: atIndex: 6 forKey: @""]; ou = [ldifRecord objectForKey: @"ou"]; - if (ou) + if ([ou isKindOfClass: [NSArray class]]) + units = [NSArray arrayWithArray: ou]; + else if (ou) units = [NSArray arrayWithObject: ou]; else units = nil;