diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2012-12-10 19:29:21 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2012-12-10 19:29:21 +0000 |
commit | 2304f5d42c2bb1829b1cf9055c2848db116742d3 (patch) | |
tree | c3760ba15df5807a49f260c9036a660267eeb7ba /app | |
parent | aba07a860f9583c6ee17e83f54b4002ceec50122 (diff) | |
download | redmine-2304f5d42c2bb1829b1cf9055c2848db116742d3.tar.gz redmine-2304f5d42c2bb1829b1cf9055c2848db116742d3.zip |
Fixed notes preview in issue history broken and hidden by a broken test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10975 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/previews_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb index af2bc7504..9594a9fe1 100644 --- a/app/controllers/previews_controller.rb +++ b/app/controllers/previews_controller.rb @@ -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[:issue] ? params[:issue][:notes] : nil) + # 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 |