(fix) fixed default TRANSP value when creating event

pull/222/head
Ludovic Marcotte 2016-09-28 10:28:43 -04:00
parent c328ea1823
commit b7abbeb045
2 changed files with 5 additions and 2 deletions

1
NEWS
View File

@ -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)
------------------

View File

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