班级讨论区、竞赛讨论区 删除子栏目中的帖子却返回主栏目帖子列表

This commit is contained in:
cxt 2017-01-06 18:59:11 +08:00
parent 406d987125
commit 20581a68c7
1 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ class MessagesController < ApplicationController
elsif @message.parent elsif @message.parent
redirect_to board_message_url(@board, @message.parent, :r => r) redirect_to board_message_url(@board, @message.parent, :r => r)
else else
redirect_to course_boards_path(@course) redirect_to course_boards_path(@course, :board_id => @board.id)
end end
elsif @contest elsif @contest
if params[:is_course] && params[:is_course].to_i == 0 if params[:is_course] && params[:is_course].to_i == 0
@ -357,7 +357,7 @@ class MessagesController < ApplicationController
elsif @message.parent elsif @message.parent
redirect_to board_message_url(@board, @message.parent, :r => r) redirect_to board_message_url(@board, @message.parent, :r => r)
else else
redirect_to contest_boards_path(@contest) redirect_to contest_boards_path(@contest, :board_id => @board.id)
end end
elsif @org_subfield elsif @org_subfield
if params[:is_board] if params[:is_board]