]> source.dussan.org Git - redmine.git/commitdiff
Set @previewed for rendering preview partial.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 31 Jul 2012 17:22:17 +0000 (17:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 31 Jul 2012 17:22:17 +0000 (17:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10145 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/messages_controller.rb

index 7ac7aa36567a4a83b026e486ae026632fdc0fcd9..d4c388c22c33e7fc0dfbe72a62be8527b70f8071 100644 (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