summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/previews_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb
index 6960dfff5..ec9b293c9 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[: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