From a53894dd22b3338077d82f1e6d449f02d2dd3a81 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 31 Jul 2012 17:22:17 +0000 Subject: [PATCH] Set @previewed for rendering preview partial. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/messages_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 7ac7aa365..d4c388c22 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -117,6 +117,7 @@ class MessagesController < ApplicationController message = @board.messages.find_by_id(params[:id]) @attachements = message.attachments if message @text = (params[:message] || params[:reply])[:content] + @previewed = message render :partial => 'common/preview' end -- 2.39.5