From a8574d8e758b745d7eca41e4487dcbb6eb8b714f 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 9080d4ac4..8320680b7 100644 --- a/SoObjects/Contacts/NGVCard+SOGo.m +++ b/SoObjects/Contacts/NGVCard+SOGo.m @@ -264,7 +264,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;