Closing an issue interferes with new labels and renders them unusable
Created by: jk
I just closed an issue in one project. And after that I can't open the issue page of that specific project.
From the production.log
:
Started PUT "/scm-irc-hookbot/issues/6?issue%5Bclosed%5D=true&status_only=true" for 192.168.111.60 at 2012-06-28 11:52:57 +0200
Processing by IssuesController#update as HTML
Parameters: {"authenticity_token"=>"EOIv7w+oQTEAECzYNpyJSBMFcoIxUFb7l48VPhJfUb4=", "issue"=>{"closed"=>"true"}, "status_only"=>"true", "project_id"=>"scm-irc-hookbot", "id"=>"6"}
Redirected to https://v2.dev1.hh.lan/scm-irc-hookbot/issues/6
Completed 302 Found in 230ms (ActiveRecord: 103.7ms)
Started GET "/scm-irc-hookbot/issues/6" for 192.168.111.60 at 2012-06-28 11:52:58 +0200
Processing by IssuesController#show as HTML
Parameters: {"project_id"=>"scm-irc-hookbot", "id"=>"6"}
Rendered issues/show.html.haml within layouts/project (39.5ms)
Completed 500 Internal Server Error in 58ms
ActionView::Template::Error (undefined method `labels' for #<Issue:0x0000000562ac00>):
51: = truncate(milestone.title, :length => 20)
52:
53: .right
54: - @issue.labels.each do |label|
55: %span.label.label-issue
56: %i.icon-tag
57: = label.name
app/views/issues/show.html.haml:54:in `_app_views_issues_show_html_haml__3659395710640092311_41122620'
app/controllers/issues_controller.rb:49:in `show'