Fixed bug with ?_sort= and ?_search=, closes #1214

This commit is contained in:
Simon Willison 2021-02-02 13:20:53 -08:00
commit 7a2ed9f8a1
2 changed files with 18 additions and 1 deletions

View file

@ -815,7 +815,7 @@ class TableView(RowTableShared):
form_hidden_args = []
for key in request.args:
if key.startswith("_"):
if key.startswith("_") and key not in ("_sort", "_search"):
for value in request.args.getlist(key):
form_hidden_args.append((key, value))