##// END OF EJS Templates
Fixed: preview fails when updating an issue (broken by r1322). Patch #1027....
Jean-Philippe Lang -
r1326:85f040c5362d
parent child
Show More
@@ -345,7 +345,7 class IssuesController < ApplicationController
345
345
346 def preview
346 def preview
347 @issue = @project.issues.find_by_id(params[:id]) if params[:id]
347 @issue = @project.issues.find_by_id(params[:id]) if params[:id]
348 @attachements = issue.attachments if @issue
348 @attachements = @issue.attachments if @issue
349 @text = params[:notes] || (params[:issue] ? params[:issue][:description] : nil)
349 @text = params[:notes] || (params[:issue] ? params[:issue][:description] : nil)
350 render :partial => 'common/preview'
350 render :partial => 'common/preview'
351 end
351 end
General Comments 0
You need to be logged in to leave comments. Login now