Fixed BUG-102 cant switch to folder view

This commit is contained in:
2022-08-02 17:55:10 +10:00
parent a8af00fe66
commit 5221e330c1
3 changed files with 14 additions and 50 deletions

View File

@@ -186,8 +186,7 @@ class States(PA):
self.noo = u.default_storage_noo
self.folders = u.default_storage_folders
else:
# is a search so...
print( "For now, search does not show in folders, force folders=False")
# search so force folders to be false (rather see images, # than series of folders that dont match search themselves)
self.noo=u.default_search_noo
self.folders=False
@@ -219,10 +218,11 @@ class States(PA):
# seems html cant do boolean, but uses strings so convert
if self.path_type != "View" and 'folders' in request.form:
# we are changing values based on a POST to the form, if we are in folder view and we changed the folders option, we need to reset things
if 'ChangeFileOpts' in request.path and self.folders and self.folders != request.form['folders']:
self.num_entries=0
self.first_eid=0
self.last_eid=0
if 'ChangeFileOpts' in request.path:
if self.folders and self.folders != request.form['folders']:
self.num_entries=0
self.first_eid=0
self.last_eid=0
if request.form['folders'] == "False":
self.folders=False
else: