Fix vCard generation for tags with no type

Fixes #3826
pull/225/head
Francis Lachapelle 2016-10-17 16:34:23 -04:00
parent 1c0c7ab256
commit f902b90348
2 changed files with 8 additions and 3 deletions

1
NEWS
View File

@ -12,6 +12,7 @@ Bug fixes
- [web] improved memory usage when importing very large address books
- [web] fixed progress indicator while importing cards or events and tasks
- [web] improved detection of changes in CKEditor (#3839)
- [web] fixed vCard generation for tags with no type (#3826)
- [core] only consider SMTP addresses for AD's proxyAddresses (#3842)

View File

@ -202,9 +202,13 @@ convention:
list = [allValues objectEnumerator];
while ((value = [list nextObject]))
{
element = [CardElement simpleElementWithTag: elementTag
singleType: type
value: value];
if ([type length])
element = [CardElement simpleElementWithTag: elementTag
singleType: type
value: value];
else
element = [CardElement simpleElementWithTag: elementTag
value: value];
[self addChild: element];
}
}