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