Fix for bug #2106
parent
378eef4082
commit
77e4b3307f
|
@ -424,16 +424,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline BOOL
|
static inline BOOL
|
||||||
_subValuesAreVoid (NSArray *subValues)
|
_subValuesAreVoid (id subValues)
|
||||||
{
|
{
|
||||||
BOOL result = YES;
|
BOOL result = YES;
|
||||||
NSUInteger count, max;
|
NSUInteger count, max;
|
||||||
|
|
||||||
result = YES;
|
result = YES;
|
||||||
|
|
||||||
max = [subValues count];
|
if ([subValues isKindOfClass: [NSArray class]])
|
||||||
for (count = 0; result && count < max; count++)
|
{
|
||||||
result = ([[subValues objectAtIndex: count] length] == 0);
|
max = [subValues count];
|
||||||
|
for (count = 0; result && count < max; count++)
|
||||||
|
result = ([[subValues objectAtIndex: count] length] == 0);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -303,7 +303,8 @@ convention:
|
||||||
forKey: @""];
|
forKey: @""];
|
||||||
|
|
||||||
[self setNote: [ldifRecord objectForKey: @"description"]];
|
[self setNote: [ldifRecord objectForKey: @"description"]];
|
||||||
[self setCategories: [ldifRecord objectForKey: @"vcardcategories"]];
|
[self setCategories: [[ldifRecord objectForKey: @"vcardcategories"]
|
||||||
|
componentsSeparatedByString: @","]];
|
||||||
|
|
||||||
[self cleanupEmptyChildren];
|
[self cleanupEmptyChildren];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* NSDictionary+LDIF.m - this file is part of SOGo
|
/* NSDictionary+LDIF.m - this file is part of SOGo
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Inverse inc
|
* Copyright (C) 2011-2012 Inverse inc
|
||||||
*
|
*
|
||||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* SOGoContactLDIFEntry.m - this file is part of SOGo
|
/* SOGoContactLDIFEntry.m - this file is part of SOGo
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2011 Inverse inc.
|
* Copyright (C) 2006-2012 Inverse inc.
|
||||||
*
|
*
|
||||||
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
* Ludovic Marcotte <lmarcotte@inverse.ca>
|
* Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2004-2005 SKYRIX Software AG
|
Copyright (C) 2004-2005 SKYRIX Software AG
|
||||||
|
Copyright (C) 2006-2012 Inverse inc.
|
||||||
|
|
||||||
This file is part of OpenGroupware.org.
|
This file is part of SOGo
|
||||||
|
|
||||||
OGo is free software; you can redistribute it and/or modify it under
|
SOGo is free software; you can redistribute it and/or modify it under
|
||||||
the terms of the GNU Lesser General Public License as published by the
|
the terms of the GNU Lesser General Public License as published by the
|
||||||
Free Software Foundation; either version 2, or (at your option) any
|
Free Software Foundation; either version 2, or (at your option) any
|
||||||
later version.
|
later version.
|
||||||
|
|
||||||
OGo is distributed in the hope that it will be useful, but WITHOUT ANY
|
SOGo is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||||
License for more details.
|
License for more details.
|
||||||
|
|
Loading…
Reference in New Issue