Skip to content

Commit

Permalink
Fix vCard generation for tags with no type
Browse files Browse the repository at this point in the history
Fixes #3826
  • Loading branch information
cgx committed Oct 17, 2016
1 parent 1c0c7ab commit f902b90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -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)


Expand Down
10 changes: 7 additions & 3 deletions SoObjects/Contacts/NGVCard+SOGo.m
Expand Up @@ -202,9 +202,13 @@ - (void) addElementWithTag: (NSString *) elementTag
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];
}
}
Expand Down

0 comments on commit f902b90

Please sign in to comment.