diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 643a4e0ef..fdece9e1a 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -242,7 +242,7 @@ class IssuesController < ApplicationController def preview issue = Issue.find_by_id(params[:id]) @attachements = issue.attachments if issue - @text = params[:issue][:description] + @text = (params[:issue] ? params[:issue][:description] : nil) || params[:notes] render :partial => 'common/preview' end diff --git a/app/views/issues/_update.rhtml b/app/views/issues/_update.rhtml index 3cf593806..49d1473d9 100644 --- a/app/views/issues/_update.rhtml +++ b/app/views/issues/_update.rhtml @@ -1,4 +1,6 @@ -<% labelled_tabular_form_for(:issue, @issue, :url => {:action => 'update', :id => @issue}, :html => {:multipart => true}) do |f| %> +<% labelled_tabular_form_for(:issue, @issue, :url => {:action => 'update', :id => @issue}, + :html => {:multipart => true, + :id => 'issue-form'}) do |f| %>