(fix) wrong handling of "last module" when logging in

pull/105/head
Ludovic Marcotte 2015-09-01 16:43:56 -04:00
parent 778612bf41
commit 27e57e397e
1 changed files with 4 additions and 0 deletions

View File

@ -2086,6 +2086,10 @@ static NSArray *reminderValues = nil;
// We convert our object into a mutable one
v = [[v mutableCopy] autorelease];
if ([[v objectForKey: @"SOGoLoginModule"] isEqualToString: @"Last"])
[v setObject: [NSNumber numberWithBool: YES] forKey: @"SOGoRememberLastModule"];
else
[v setObject: [NSNumber numberWithBool: NO] forKey: @"SOGoRememberLastModule"];
// We remove short/long date formats if they are default ones
if ([[v objectForKey: @"SOGoShortDateFormat"] isEqualToString: @"default"])