Adds a setting for choosing the new object menu item style (#15880).

Set to use the new "+" drop-down by default, but let users revert to the "New issue" tab, or no menu item at all.

git-svn-id: http://svn.redmine.org/redmine/trunk@15508 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-06-11 07:26:23 +00:00
parent 893c96a990
commit 79fcbc82dc
54 changed files with 65 additions and 59 deletions

View File

@@ -362,7 +362,7 @@ class IssuesController < ApplicationController
# 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)
if Setting.new_item_menu_tab == '1' && [:new, :create].include?(action_name.to_sym)
:new_issue
else
super