Add the project_id to board URLs in the menu to generate valid URLs

This commit is contained in:
Holger Just 2012-04-05 20:49:47 +02:00
parent aca166271b
commit b8a29c288b

View File

@ -345,7 +345,7 @@ Redmine::MenuManager.map :project_menu do |menu|
project.boards.collect do |board| project.boards.collect do |board|
Redmine::MenuManager::MenuItem.new( Redmine::MenuManager::MenuItem.new(
"board-#{board.id}".to_sym, "board-#{board.id}".to_sym,
{ :controller => 'boards', :action => 'show', :id => board }, { :controller => 'boards', :action => 'show', :project_id => project, :id => board },
{ {
:caption => board.name # is h() in menu_helper.rb :caption => board.name # is h() in menu_helper.rb
}) })