https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292008-04-03T16:48:21ZRedmineRedmine - Defect #984: trying to preview a new issue raises an exceptionhttps://www.redmine.org/issues/984?journal_id=21592008-04-03T16:48:21ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Target version</strong> set to <i>0.7</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Fixed in <a class="changeset" title="Fixed: trying to preview a new issue raises an exception with postgresql (close #984)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1322">r1322</a>.</p> Redmine - Defect #984: trying to preview a new issue raises an exceptionhttps://www.redmine.org/issues/984?journal_id=24092008-04-24T05:22:20Zokkez _
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p><a class="changeset" title="Fixed: trying to preview a new issue raises an exception with postgresql (close #984)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1322">r1322</a> do not fix this ticket's problem.</p>
<p>I wrote a simple patch for 0.7.0-RC1.<br />This patch may be also applied to SVN HEAD.</p>
<pre>
--- app/controllers/issues_controller.rb.org 2008-04-24 05:09:38.000000000 +0000
+++ app/controllers/issues_controller.rb 2008-04-24 05:16:31.000000000 +0000
@@ -338,7 +338,7 @@
end
def preview
- issue = @project.issues.find_by_id(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'
</pre> Redmine - Defect #984: trying to preview a new issue raises an exceptionhttps://www.redmine.org/issues/984?journal_id=24262008-04-24T18:21:51ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="Fixed: trying to preview a new issue raises an exception (closes #984)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1356">r1356</a>.</p>