mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user