fixed BUG-71 - size is lost from view details

This commit is contained in:
2021-10-10 11:30:32 +11:00
parent 9e01be4c6f
commit 58889c394f
2 changed files with 5 additions and 3 deletions

View File

@@ -89,7 +89,9 @@ class Options(PA):
self.how_many=request.form['how_many']
self.offset=int(request.form['offset'])
self.grouping=request.form['grouping']
self.size = request.form['size']
# this can be null if we come from view by details
if request.form['size']:
self.size = request.form['size']
# seems html cant do boolean, but uses strings so convert
if request.form['folders'] == "False":
self.folders=False
@@ -123,6 +125,7 @@ class Options(PA):
pref.st_offset=self.offset
pref.size=self.size
pref.folders=self.folders
# DDP: does this need to save changed preferences here???
db.session.add(pref)
db.session.commit()