From 8ebfe57fe0014ef181aefe3a0b8330c299416412 Mon Sep 17 00:00:00 2001 From: yutao <283765470@qq.com> Date: Tue, 23 Jun 2015 16:05:08 +0800 Subject: [PATCH] =?UTF-8?q?bug#2901:=E8=AF=BE=E7=A8=8B=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E5=8C=BA=EF=BC=9A=E4=BB=8E=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E5=88=B0=E4=BA=86=E5=A6=82=E4=B8=8B=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E4=BB=8E=E8=AF=BE=E7=A8=8B=E8=AE=BA=E5=9D=9B=E5=B0=B1?= =?UTF-8?q?=E5=86=8D=E4=B9=9F=E8=BF=9B=E4=B8=8D=E5=88=B0=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BA=86=20MessagesController#show=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0BoardsController#index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/messages_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index b1da35cfc..a242587fb 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -37,6 +37,14 @@ class MessagesController < ApplicationController # Show a topic and its replies def show + if @course + topic_id = params[:r]?params[:r]:params[:id] + parent_id = params[:id] + url = course_boards_path(@course,:topic_id => topic_id,:parent_id=>parent_id); + redirect_to url + return; + end + @isReply = true page = params[:page] # Find the page of the requested reply