(fix) handle multi-valued mozillasecondemail attribute mapping
parent
dc50bd2296
commit
396755fffb
6
NEWS
6
NEWS
|
@ -1,3 +1,9 @@
|
|||
4.x.x (2018-xx-xx)
|
||||
------------------
|
||||
|
||||
Bug fixes
|
||||
- [core] handle multi-valued mozillasecondemail attribute mapping
|
||||
|
||||
4.0.1 (2018-07-10)
|
||||
------------------
|
||||
|
||||
|
|
|
@ -274,8 +274,24 @@ convention:
|
|||
}
|
||||
}
|
||||
|
||||
mail = [ldifRecord objectForKey: @"mozillasecondemail"];
|
||||
if ([mail isKindOfClass: [NSArray class]])
|
||||
{
|
||||
mailList = [(NSArray *)mail objectEnumerator];
|
||||
while ((mail = [mailList nextObject]))
|
||||
{
|
||||
if ([mail length] && ![emails containsObject: mail])
|
||||
[self addElementWithTag: @"email"
|
||||
ofType: @"home"
|
||||
withValue: mail];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
homeMail = [self elementWithTag: @"email" ofType: @"home"];
|
||||
[homeMail setSingleValue: [ldifRecord objectForKey: @"mozillasecondemail"] forKey: @""];
|
||||
[homeMail setSingleValue: mail forKey: @""];
|
||||
}
|
||||
|
||||
[[self uniqueChildWithTag: @"x-mozilla-html"]
|
||||
setSingleValue: [ldifRecord objectForKey: @"mozillausehtmlmail"]
|
||||
forKey: @""];
|
||||
|
|
Loading…
Reference in New Issue