Merged r10975 from trunk (#12566).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.1-stable@11001 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-15 07:48:42 +00:00
parent e36a611f81
commit ca0b289479
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ class PreviewsController < ApplicationController
if @description && @description.gsub(/(\r?\n|\n\r?)/, "\n") == @issue.description.to_s.gsub(/(\r?\n|\n\r?)/, "\n")
@description = nil
end
@notes = params[:notes]
# params[:notes] is useful for preview of notes in issue history
@notes = params[:notes] || (params[:issue] ? params[:issue][:notes] : nil)
else
@description = (params[:issue] ? params[:issue][:description] : nil)
end