mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-04 05:05:05 +00:00
fix(UI): use legitimate sorting value
This commit is contained in:
@@ -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