From 65828ffbdd9df888a5b29754d9391cf3d377faa5 Mon Sep 17 00:00:00 2001 From: Darks Date: Tue, 6 Jun 2023 19:52:46 +0200 Subject: [PATCH] moderation: fixed moving a post to another topic --- app/routes/posts/edit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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