forked from devs/PCv5
moderation: fixed moving a post to another topic
This commit is contained in:
parent
7aa93f15ea
commit
65828ffbdd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue