syntacticvexation/redmine_favourite_projects — Issue #6: Internal error on favourite project manager page after deleting project from Redmine
Author: lostar
Created: 2011-10-27 06:18:34+00:00
State: open

How to reproduce:
1. Add a project to favourite list by using favourite projects manager page.
2. Delete project in Redmine (by using admin account).
3. Open favourite projects manager page.

Redmine version 1.1.1

Redmine production log:

Processing FavouriteProjectsController#index (for 192.168.1.208 at 2011-10-27 10:02:55) [GET]
Parameters: {"action"=>"index", "controller"=>"favourite_projects"}
Rendering template within layouts/base
Rendering favourite_projects/index

ActionView::TemplateError (undefined method `identifier' for nil:NilClass) on line #28 of vendor/plugins/redmine_favourite_pr
ojects/app/views/favourite_projects/index.html.erb:
25:

26: <% @favourite_projects.each do |fav| %>
27:
">
28:	<%= link_to fav.project, {:controller => 'projects', :action => fav.project.identifier} %>
29:	<%= link_to(l(:button_delete), { :controller => 'favourite_projects', :action => 'remove_project',
:id => fav.id }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del') %>
30:

31: <% end %>

vendor/plugins/redmine_favourite_projects/app/views/favourite_projects/index.html.erb:28
vendor/plugins/redmine_favourite_projects/app/views/favourite_projects/index.html.erb:26:in `each'
vendor/plugins/redmine_favourite_projects/app/views/favourite_projects/index.html.erb:26