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
This commit is contained in:
parent
a3c89d4f69
commit
85f040c536
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue