summaryrefslogtreecommitdiffstats
path: root/app/controllers/previews_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-09 19:11:49 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-09 19:11:49 +0000
commit5a02dcf0a9f5bbd8537b2bab8857eabd4b7b1253 (patch)
tree1fcffbc85f7ea56fec8c0ff1cf59403f1e2b534f /app/controllers/previews_controller.rb
parentc4e040fa888a066fbb0fb270f9ba40a63ade1104 (diff)
downloadredmine-5a02dcf0a9f5bbd8537b2bab8857eabd4b7b1253.tar.gz
redmine-5a02dcf0a9f5bbd8537b2bab8857eabd4b7b1253.zip
Fixed that issue notes preview is broken by r10547 (#1554).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10585 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/previews_controller.rb')
-rw-r--r--app/controllers/previews_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb
index cd947148d..af2bc7504 100644
--- a/app/controllers/previews_controller.rb
+++ b/app/controllers/previews_controller.rb
@@ -26,7 +26,7 @@ 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]
+ @notes = (params[:issue] ? params[:issue][:notes] : nil)
else
@description = (params[:issue] ? params[:issue][:description] : nil)
end