Add the project_id to board URLs in the menu to generate valid URLs
This commit is contained in:
parent
aca166271b
commit
b8a29c288b
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user