From 78b112d0509b86f938784a1d031c623e7b7d3670 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 12 Oct 2025 19:31:45 +1100 Subject: [PATCH] when we change file options, make sure we call correct query data function - search needs GetSerachQueryData --- files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files.py b/files.py index d2c0941..9d47b8b 100644 --- a/files.py +++ b/files.py @@ -461,7 +461,10 @@ def change_file_opts(): else: OPT.folders=False # 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 ) )