https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-03-17T23:38:47ZRedmineRedmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=152432010-03-17T23:38:47ZEric Davis
<ul><li><strong>Subject</strong> changed from <i>Changes to issues complete but yield 500</i> to <i>ActionView::TemplateError (undefined local variable or method `issue')</i></li></ul><p>(cleaned up the title so it can be searched for)</p> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=152632010-03-18T19:24:40ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Can not be reproduced.</p>
<p>Your /app/views/issues/show.rhtml was not updated or you're using a plugin that overrides this view.<br />Make sure that you properly restarted the app too.</p> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=152782010-03-18T22:43:45ZMischa The Evil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Invalid</i></li></ul><p>This is caused by the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/Plugin_List#Advanced-Roadmap-plugin">Advanced Roadmap</a> plugin to be precise. It indeed overrides that specific view.<br />Please report it to the maintainer of the plugin.</p>
<p>Greetings.</p> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=154612010-03-25T14:13:38ZHolger Just
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>The issue is not closed indeed. The bug is still present. As the stack trace clearly states, it is the original view (<code>app/views/issues/_history.rhtml:14</code>) which throws the exception.</p>
<p>There is just a @ missing:</p>
<pre>
Index: app/views/issues/_history.rhtml
===================================================================
--- app/views/issues/_history.rhtml (revision 3612)
+++ app/views/issues/_history.rhtml (working copy)
@@ -11,7 +11,7 @@
<li><%= show_detail(detail) %></li>
<% end %>
</ul>
- <%= render_notes(issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
+ <%= render_notes(@issue, journal, :reply_links => reply_links) unless journal.notes.blank? %>
</div>
<%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
<% end %>
</pre>
<p>The bug was indeed introduced in <a class="changeset" title="Inlines some code to speed up large ticket history rendering." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3594">r3594</a>. It is only triggered is you perform e.g. a bulk update and enter no journal notes.</p> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=154632010-03-25T14:20:42ZHolger Just
<ul></ul><p>Never mind, I overwrote the <code>show.rhtml</code> template...</p> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=154642010-03-25T14:32:03ZFelix Schäfer
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul> Redmine - Defect #5113: ActionView::TemplateError (undefined local variable or method `issue')https://www.redmine.org/issues/5113?journal_id=168242010-05-17T13:13:52ZWael Nasreddine
<ul></ul><p>There's a patch for this issue upstream and on the bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Internal error 500 when updating an existing issue (Closed)" href="https://www.redmine.org/issues/5346">#5346</a></p>