when we change file options, make sure we call correct query data function - search needs GetSerachQueryData
This commit is contained in:
3
files.py
3
files.py
@@ -461,6 +461,9 @@ def change_file_opts():
|
||||
else:
|
||||
OPT.folders=False
|
||||
# so create a new entryList, and handle that on the client
|
||||
if 'search' in request.referrer:
|
||||
query_data = GetSearchQueryData( OPT )
|
||||
else:
|
||||
query_data = GetQueryData( OPT )
|
||||
return make_response( jsonify( query_data=query_data ) )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user