Fix to save many postal addresses of tge same type

Fixes #4091
This commit is contained in:
Francis Lachapelle committed 2017-09-07 16:30:22 -04:00
1 parent 24382a4318
commit aa3c02be93
2 files changed
+4 -1

No files matched your search

+3 -1
View File
@@ -381,7 +381,8 @@ static Class SOGoContactGCSEntryK = Nil;
o = [values objectAtIndex: i];
if ([o isKindOfClass: [NSDictionary class]])
{
element = [card elementWithTag: @"adr" ofType: [o objectForKey: @"type"]];
element = [CardElement elementWithTag: @"adr"];
[element addType: [o objectForKey: @"type"]];
[element setSingleValue: [o objectForKey: @"postoffice"]
atIndex: 0 forKey: @""];
[element setSingleValue: [o objectForKey: @"street2"]
@@ -396,6 +397,7 @@ static Class SOGoContactGCSEntryK = Nil;
atIndex: 5 forKey: @""];
[element setSingleValue: [o objectForKey: @"country"]
atIndex: 6 forKey: @""];
[card addChild: element];
}
}
}