From: Jean-Philippe Lang Date: Wed, 9 Apr 2008 17:52:41 +0000 (+0000) Subject: Fixed: preview fails when updating an issue (broken by r1322). Patch #1027. X-Git-Tag: 0.8.0-RC1~592 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=85f040c5362dd89829f694a58f4e91ced7fcd33e;p=redmine.git Fixed: preview fails when updating an issue (broken by r1322). Patch #1027. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1341 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index b3f21fddf..369d888ef 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -345,7 +345,7 @@ class IssuesController < ApplicationController def preview @issue = @project.issues.find_by_id(params[:id]) if params[:id] - @attachements = issue.attachments if @issue + @attachements = @issue.attachments if @issue @text = params[:notes] || (params[:issue] ? params[:issue][:description] : nil) render :partial => 'common/preview' end