From 5f8e9d71182040473d4072241ce81fcadada497f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 6 Dec 2009 10:28:20 +0000 Subject: Version sharing (#465) + optional inclusion of subprojects in the roadmap view (#2666). Each version of a project can be shared with: * subprojects * projects in the project hierarchy: ancestors + descendants (needs versions management permission on the root project) * projects in the project tree: root project + all its descendants (same as above) * all projects (can be set by admin users only) Notes: * when sharing a version of a private project with others projects, its name will be visible within the other projects * a project with versions used by non descendant projects can not be archived git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3123 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/redmine.rb b/lib/redmine.rb index 8dbe5d0ef..56a7a458c 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -142,7 +142,7 @@ Redmine::MenuManager.map :project_menu do |menu| menu.push :overview, { :controller => 'projects', :action => 'show' } menu.push :activity, { :controller => 'projects', :action => 'activity' } menu.push :roadmap, { :controller => 'projects', :action => 'roadmap' }, - :if => Proc.new { |p| p.versions.any? } + :if => Proc.new { |p| p.shared_versions.any? } menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural menu.push :new_issue, { :controller => 'issues', :action => 'new' }, :param => :project_id, :caption => :label_issue_new, :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) } -- cgit v1.2.3