Fix to save many postal addresses of tge same type

Fixes #4091
pull/218/merge
Francis Lachapelle 2017-09-07 16:30:22 -04:00
parent 24382a4318
commit aa3c02be93
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -17,6 +17,7 @@ Bug fixes
- [web] attachments are not displayed on IOS (#4150)
- [web] fixed parsing of pasted email addresses from Spreadsheet (#4258)
- [web] messages list not accessible when changing mailbox in expanded mail view (#4269)
- [web] only one postal address of same type is saved (#4091)
- [eas] hebrew folders encoding problem using EAS (#4240)
3.2.10 (2017-07-05)

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];
}
}
}