Browse Source

Return redirect when moving topics

Closes #358
Sam Heybey 7 years ago
parent
commit
667a9105bd
1 changed files with 6 additions and 1 deletions
  1. 6 1
      flaskbb/forum/views.py

+ 6 - 1
flaskbb/forum/views.py

@@ -312,7 +312,12 @@ class ManageForum(MethodView):
                 flash(_('You do not have the permissions to move this topic.'), 'danger')
                 return redirect(mod_forum_url)
 
-            new_forum.move_topics_to(tmp_topics)
+            if new_forum.move_topics_to(tmp_topics):
+                flash(_('Topics moved.'), 'success')
+            else:
+                flash(_('Failed to move topics.'), 'danger')
+
+            return redirect(mod_forum_url)
 
         # hiding/unhiding
         elif "hide" in request.form: