Return component's priority as an integer

pull/207/head
Francis Lachapelle 2016-04-21 13:53:57 -04:00
parent fba40c43d6
commit 9a4d3251a1
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -34,6 +34,7 @@ Bug fixes
- [web] fixed saving of a custom weekly recurrence definition
- [web] properly escape the user's display name (#3617)
- [web] avoid returning search results on objects without read permissions (#3619)
- [web] restore priority of event or task in component editor
- [core] properly escape wide characters (#3616)
- [core] avoid double-appending domains in cache for multi-domain configurations (#3614)
- [dav] we now handle the default classifications for tasks (#3541)

View File

@ -86,7 +86,7 @@ NSNumber *iCalDistantFutureNumber = nil;
nil];
value = [self priority];
if ([value length]) [data setObject: value forKey: @"priority"];
if ([value length]) [data setObject: [NSNumber numberWithInteger: [value intValue]] forKey: @"priority"];
value = [self location];
if ([value length]) [data setObject: value forKey: @"location"];