From 2b412e9e0795391b28ed991654e6add67f32d628 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 24 Apr 2008 17:35:04 +0000 Subject: [PATCH] Fixed: trying to preview a new issue raises an exception (closes #984). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1356 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 0f1d84265..84b95741e 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -344,7 +344,7 @@ class IssuesController < ApplicationController end def preview - @issue = @project.issues.find_by_id(params[:id]) if params[:id] + @issue = @project.issues.find_by_id(params[:id]) unless params[:id].blank? @attachements = @issue.attachments if @issue @text = params[:notes] || (params[:issue] ? params[:issue][:description] : nil) render :partial => 'common/preview'