Set @previewed for rendering preview partial.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-07-31 17:22:17 +00:00
parent d99dbe9f0c
commit a53894dd22
1 changed files with 1 additions and 0 deletions

View File

@ -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