班级讨论区、竞赛讨论区 删除子栏目中的帖子却返回主栏目帖子列表
This commit is contained in:
parent
406d987125
commit
20581a68c7
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue