Added preview for issue notes.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1096 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-01-23 18:21:42 +00:00
parent d54ba39e7a
commit 2d9e669e85
3 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ class IssuesController < ApplicationController
def preview
issue = Issue.find_by_id(params[:id])
@attachements = issue.attachments if issue
@text = params[:issue][:description]
@text = (params[:issue] ? params[:issue][:description] : nil) || params[:notes]
render :partial => 'common/preview'
end