]> source.dussan.org Git - redmine.git/commitdiff
Pass the message id when previewing in edit mode (#10275).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 15:17:13 +0000 (15:17 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 23 Feb 2012 15:17:13 +0000 (15:17 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8950 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/messages/edit.html.erb

index c8ce847dce5d403d53b93b209fedf565d8dcf0ed..054297ceeee808fee9994a78fb80ca50ebe433ca 100644 (file)
@@ -12,7 +12,7 @@
   <%= submit_tag l(:button_save) %>
   <%= link_to_remote l(:label_preview),
                      { :url => { :controller => 'messages',
-                                 :action => 'preview', :board_id => @board },
+                                 :action => 'preview', :board_id => @board, :id => @message },
                        :method => 'post',
                        :update => 'preview',
                        :with => "Form.serialize('message-form')",