summaryrefslogtreecommitdiffstats
path: root/app/controllers/messages_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 17:22:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-31 17:22:17 +0000
commita53894dd22b3338077d82f1e6d449f02d2dd3a81 (patch)
treecdf7965d0e1f64c1f42bfc21d92b48e2581c3bc2 /app/controllers/messages_controller.rb
parentd99dbe9f0c55febbbfd980dc458856a543125ea6 (diff)
downloadredmine-a53894dd22b3338077d82f1e6d449f02d2dd3a81.tar.gz
redmine-a53894dd22b3338077d82f1e6d449f02d2dd3a81.zip
Set @previewed for rendering preview partial.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/messages_controller.rb')
-rw-r--r--app/controllers/messages_controller.rb1
1 files changed, 1 insertions, 0 deletions
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