diff --git a/NEWS b/NEWS index a73c6c1f7..74a186c8b 100644 --- a/NEWS +++ b/NEWS @@ -29,6 +29,7 @@ Bug fixes - [core] properly handle groups in Apple Calendar's delegation - [core] fixed caching expiration of ACLs assigned to LDAP groups (#2867) - [core] make sure new cards always have a UID (#3819) + - [core] fixed default TRANSP value when creating event 3.1.5 (2016-08-10) ------------------ diff --git a/SoObjects/Appointments/iCalEvent+SOGo.m b/SoObjects/Appointments/iCalEvent+SOGo.m index dbb857ab4..0671d8f67 100644 --- a/SoObjects/Appointments/iCalEvent+SOGo.m +++ b/SoObjects/Appointments/iCalEvent+SOGo.m @@ -362,8 +362,10 @@ aptEndDate = [self dateFromString: o inContext: context]; o = [data objectForKey: @"isTransparent"]; - if ([o isKindOfClass: [NSNumber class]]) - [self setTransparency: ([o boolValue]? @"TRANSPARENT" : @"OPAQUE")]; + if ([o isKindOfClass: [NSNumber class]] && [o boolValue]) + [self setTransparency: @"TRANSPARENT"]; + else + [self setTransparency: @"OPAQUE"]; isAllDay = [[data objectForKey: @"isAllDay"] boolValue];