treat a Search as a "path" in PA_PREFS so we can remember settings for a search too - this fixes the issue where prefs are "changed" when you go from import/storage -> search -> import/storage again
This commit is contained in:
10
options.py
10
options.py
@@ -58,6 +58,16 @@ class Options(PA):
|
||||
else:
|
||||
self.folders=True
|
||||
self.noo="A to Z"
|
||||
elif 'search' in url:
|
||||
self.path_type = 'Search'
|
||||
self.paths = None
|
||||
pref=PA_PREF.query.filter(PA_PREF.pa_user_dn==current_user.dn,PA_PREF.path_type==self.path_type).first()
|
||||
if pref:
|
||||
self.folders=pref.folders
|
||||
self.noo=pref.noo
|
||||
else:
|
||||
self.folders=False
|
||||
self.noo="Oldest"
|
||||
else:
|
||||
self.path_type = 'Import'
|
||||
self.paths = SettingsIPath()
|
||||
|
||||
Reference in New Issue
Block a user