summaryrefslogtreecommitdiffstats
path: root/app/controllers/previews_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-13 12:15:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-04-13 12:15:21 +0000
commit35bb707b918d58e23d9a784a9226cade5304a08d (patch)
tree16ec8ae85dc862614df453a1d6182643cff56ba8 /app/controllers/previews_controller.rb
parent4d5ddb007262c4c85c5086040e9a09fc0d0f5374 (diff)
downloadredmine-35bb707b918d58e23d9a784a9226cade5304a08d.tar.gz
redmine-35bb707b918d58e23d9a784a9226cade5304a08d.zip
Preview when editing journal notes broken by r15621.
git-svn-id: http://svn.redmine.org/redmine/trunk@16542 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/previews_controller.rb')
-rw-r--r--app/controllers/previews_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb
index 698816e44..d81560c13 100644
--- a/app/controllers/previews_controller.rb
+++ b/app/controllers/previews_controller.rb
@@ -25,8 +25,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
- # params[:notes] is useful for preview of notes in issue history
- @notes = params[:notes] || (params[:issue] ? params[:issue][:notes] : nil)
+ @notes = params[:journal] ? params[:journal][:notes] : nil
+ @notes ||= params[:issue] ? params[:issue][:notes] : nil
else
@description = (params[:issue] ? params[:issue][:description] : nil)
end