diff --git a/app/routes/posts/edit.py b/app/routes/posts/edit.py index ea988a3..93ac5a3 100644 --- a/app/routes/posts/edit.py +++ b/app/routes/posts/edit.py @@ -166,7 +166,9 @@ def move_post(postid): move_form = MovePost(prefix="move_") search_form = SearchThread(prefix="thread_") - keyword = search_form.name.data if search_form.validate_on_submit() else "" + + # There is a bug with validate_on_submit + keyword = search_form.name.data if search_form.search.data else "" # Get 10 last corresponding threads # TODO: add support for every MainPost