diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-30 18:20:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-05-30 18:20:13 +0000 |
commit | a6828512c02b20eaeb9c42fc2612c7010ede73fa (patch) | |
tree | c35bd9b72bad7aa7d48270258a404b5af9472b96 /lib/redmine.rb | |
parent | fad71f8b4bd8f1079c3fe355dc2dafeb2b5ca9ee (diff) | |
download | redmine-a6828512c02b20eaeb9c42fc2612c7010ede73fa.tar.gz redmine-a6828512c02b20eaeb9c42fc2612c7010ede73fa.zip |
Adds Issue#allowed_target_trackers (#7839).
git-svn-id: http://svn.redmine.org/redmine/trunk@15430 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 1d37a523b..0c670d1b5 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -233,7 +233,7 @@ Redmine::MenuManager.map :project_menu do |menu| menu.push :issues, { :controller => 'issues', :action => 'index' }, :param => :project_id, :caption => :label_issue_plural menu.push :new_issue, { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new, :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }, - :if => Proc.new { |p| Setting.new_project_issue_tab_enabled? && p.trackers.any? }, + :if => Proc.new { |p| Setting.new_project_issue_tab_enabled? && Issue.allowed_target_trackers(p).any? }, :permission => :add_issues menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar |