manno / frab

conference manangement system
7 stars 3 forks source link

destroying a event destroys dashboard #29

Closed towo closed 12 years ago

towo commented 12 years ago

If you destroy a event instead of changing it state, the admin dashboard does not work anymore.

meise commented 12 years ago

Error log:

ActionView::Template::Error (Couldn't find Event with id=2342):
10:         %td
11:           - if version.associated_id
12:             = version.item.to_s
13:             = associated_link_for version
14:           - else
15:             = link_to version.item.to_s, version.item
16:         %td
app/helpers/recent_changes_helper.rb:7:in `associated_link_for'
app/views/recent_changes/_table.html.haml:13:in `block in     _app_views_recent_changes__table_html_haml___2959353363234106500_40287640'
app/views/recent_changes/_table.html.haml:3:in     `_app_views_recent_changes__table_html_haml___2959353363234106500_40287640'
  app/views/recent_changes/index.html.haml:5:in `block (3 levels) in _app_views_recent_changes_index_html_haml__4251705062946330186_41797100'
app/helpers/web_app_theme_helper.rb:12:in `inner'
app/views/recent_changes/index.html.haml:4:in `block (2 levels) in _app_views_recent_changes_index_html_haml__4251705062946330186_41797100'
app/helpers/web_app_theme_helper.rb:8:in `content'
app/views/recent_changes/index.html.haml:2:in `block in _app_views_recent_changes_index_html_haml__4251705062946330186_41797100'
app/helpers/web_app_theme_helper.rb:4:in `block'
app/views/recent_changes/index.html.haml:1:in `_app_views_recent_changes_index_html_haml__4251705062946330186_41797100'

This problem should be fixed with commit 71cb152b0d87bf344724bdba36255d4b1d31ba81.