diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-27 16:27:06 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-10-27 16:27:06 +0000 |
commit | e9efa5b9814bbeddd9956b8478ed26af02b0eeca (patch) | |
tree | d2b8c54194c7410edd114483d3645d9945aff17a /lib/redmine.rb | |
parent | 70bf0706b2f7933f72cbd4daab8e43b0ac9de4e9 (diff) | |
download | redmine-e9efa5b9814bbeddd9956b8478ed26af02b0eeca.tar.gz redmine-e9efa5b9814bbeddd9956b8478ed26af02b0eeca.zip |
Refactor: use :id instead of :page when linking to Wiki Pages
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4296 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index e813950ce..1e6a71810 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -195,7 +195,7 @@ Redmine::MenuManager.map :project_menu do |menu| menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural menu.push :documents, { :controller => 'documents', :action => 'index' }, :param => :project_id, :caption => :label_document_plural - menu.push :wiki, { :controller => 'wiki', :action => 'show', :page => nil }, :param => :project_id, + menu.push :wiki, { :controller => 'wiki', :action => 'show', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.wiki && !p.wiki.new_record? } menu.push :boards, { :controller => 'boards', :action => 'index', :id => nil }, :param => :project_id, :if => Proc.new { |p| p.boards.any? }, :caption => :label_board_plural |