Fix vCard generation for tags with no type

Fixes #3826
This commit is contained in:
Francis Lachapelle
2016-10-17 16:34:23 -04:00
parent 1c0c7ab256
commit f902b90348
2 changed files with 8 additions and 3 deletions
+7 -3
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];
}
}