Persist _where= in hidden fields, closes #604

This commit is contained in:
Simon Willison 2019-10-30 11:49:26 -07:00
commit e2c390500e
2 changed files with 9 additions and 0 deletions

View file

@ -721,6 +721,9 @@ class TableView(RowTableShared):
for arg in ("_fts_table", "_fts_pk"):
if arg in special_args:
form_hidden_args.append((arg, special_args[arg]))
if request.args["_where"]:
for where_text in request.args["_where"]:
form_hidden_args.append(("_where", where_text))
return {
"supports_search": bool(fts_table),
"search": search or "",