fix BUG-95 (next button at top doesnt work in flat view)

This commit is contained in:
2022-07-15 22:52:02 +10:00
parent b2dd6a3de0
commit cfb222e3d1
3 changed files with 5 additions and 5 deletions

View File

@@ -138,6 +138,7 @@ class States(PA):
pref=PA_UserState.query.filter(PA_UserState.pa_user_dn==current_user.dn,PA_UserState.path_type==self.path_type).first()
if pref:
print( f"pref={pref}" )
self.grouping=pref.grouping
self.how_many=pref.how_many
self.offset=pref.st_offset
@@ -219,8 +220,8 @@ class States(PA):
self.size = request.form['size']
# 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 changed the folders option, we need to reset things
if 'ChangeFileOpts' in request.path and self.folders != request.form['folders']:
# 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