summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-09 17:16:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-09 17:16:55 +0000
commit4019ba76ab3005ccc1f0495069861e4a8814be55 (patch)
treee915b28bd60fc61d1cf1ee149553cfe4de71b35c /app/controllers
parent979b5f15db88f1e7a04f1c4d0dba7e9f2379ddb0 (diff)
downloadredmine-4019ba76ab3005ccc1f0495069861e4a8814be55.tar.gz
redmine-4019ba76ab3005ccc1f0495069861e4a8814be55.zip
Restores the "New issue" tab in the project menu and makes it optional (#6204).
git-svn-id: http://svn.redmine.org/redmine/trunk@15407 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb
index 7c10769aa..cf402de22 100644
--- a/app/controllers/issues_controller.rb
+++ b/app/controllers/issues_controller.rb
@@ -350,6 +350,16 @@ class IssuesController < ApplicationController
end
end
+ # Overrides Redmine::MenuManager::MenuController::ClassMethods for
+ # when the "New issue" tab is enabled
+ def current_menu_item
+ if Setting.new_project_issue_tab_enabled? && [:new, :create].include?(action_name.to_sym)
+ :new_issue
+ else
+ super
+ end
+ end
+
private
def retrieve_previous_and_next_issue_ids