From b7abbeb04533d379b4fa58c2a20f0b9bd5c43975 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 28 Sep 2016 10:28:43 -0400 Subject: [PATCH] (fix) fixed default TRANSP value when creating event --- NEWS | 1 + SoObjects/Appointments/iCalEvent+SOGo.m | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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];