moderation: fixed moving a post to another topic

This commit is contained in:
Darks 2023-06-06 19:52:46 +02:00 committed by Eragon
parent 7aa93f15ea
commit 65828ffbdd
Signed by: Eragon
GPG Key ID: 087126EBFC725006
1 changed files with 3 additions and 1 deletions

View File

@ -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