fixed BUG-71 - size is lost from view details
This commit is contained in:
3
BUGs
3
BUGs
@@ -1,4 +1,4 @@
|
||||
### Next: 71
|
||||
### Next: 72
|
||||
BUG-56: when making a viewing list of AI:mich, (any search?) and going past the page_size, it gets the wrong data from the DB for the 'next' entry
|
||||
BUG-60: entries per page (in folders view) ignores pagesize, and this also contributes to BUG-56 I think
|
||||
BUG-61: in Fullscreen mode and next/prev dropped out of FS when calling /viewlist route
|
||||
@@ -6,4 +6,3 @@ BUG-61: in Fullscreen mode and next/prev dropped out of FS when calling /viewlis
|
||||
-- then we can stay on-page, and stay in FS and then just call ViewImageOrVide()
|
||||
BUG-69: when moving a directory (maybe files???) it creates new destination directory even if one exists... not sure what the os.replace, etc. does at that point???
|
||||
BUG-70: when a dir is a match and a file is a match (common with our date-based matching), then we get 2 answers in the search
|
||||
BUG-71: from some views (view import details, then search) -> it loses the 'size' value and then barfs when putting an empty size val in the pa_prefs table
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user