when we change file options, make sure we call correct query data function - search needs GetSerachQueryData

This commit is contained in:
2025-10-12 19:31:45 +11:00
parent 97e738dc13
commit 78b112d050

View File

@@ -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 ) )