From: Jean-Philippe Lang Date: Tue, 31 Jul 2012 17:22:17 +0000 (+0000) Subject: Set @previewed for rendering preview partial. X-Git-Tag: 2.1.0~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a53894dd22b3338077d82f1e6d449f02d2dd3a81;p=redmine.git Set @previewed for rendering preview partial. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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