mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-21 10:38:12 +00:00
fix(UI): use legitimate sorting value
This commit is contained in:
1 parent
10dc173349
commit
d089c4046f
4 files changed
+30
-3
No files matched your search
@@ -786,12 +786,19 @@ static NSArray *tasksFields = nil;
|
||||
- (void) saveSortValue: (NSString *) submodule
|
||||
{
|
||||
NSString *sort, *ascending;
|
||||
NSArray *sortValues;
|
||||
SOGoUserSettings *us;
|
||||
NSMutableDictionary *calendarSettings;
|
||||
|
||||
sort = [[context request] formValueForKey: @"sort"];
|
||||
ascending = [[context request] formValueForKey: @"asc"];
|
||||
if ([sort length])
|
||||
|
||||
//Check value of sorting
|
||||
sortValues = [NSArray arrayWithObjects: @"title", @"location",
|
||||
@"calendarName", @"start", @"priority", @"category", @"status", @"end", nil];
|
||||
|
||||
|
||||
if ([sort length] && [sortValues containsObject:sort])
|
||||
{
|
||||
us = [[context activeUser] userSettings];
|
||||
calendarSettings = [us objectForKey: @"Calendar"];
|
||||
|
||||
Reference in new issue
Block a user