Unset initial folder/collection on auth errors

This commit is contained in:
Aleksander Machniak 2016-12-22 11:43:35 +01:00
parent 516768726a
commit f48a95aa29

View file

@ -2061,7 +2061,8 @@ function kolab_files_ui()
});
// select first folder?
if (response.result.auth_errors && response.result.auth_errors.length) { }
if (response.result.auth_errors && response.result.auth_errors.length)
this.env.folder = this.env.collection = null;
else if (this.env.folder)
rcmail.folder_list.select(this.env.folder);
else if (this.env.collection)