mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 11:56:18 +01:00
Don't display default watchers checkboxes on the new issue form when there are more than 20 members (#8562).
git-svn-id: http://svn.redmine.org/redmine/trunk@12673 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -428,7 +428,10 @@ class IssuesController < ApplicationController
|
||||
|
||||
@priorities = IssuePriority.active
|
||||
@allowed_statuses = @issue.new_statuses_allowed_to(User.current, @issue.new_record?)
|
||||
@available_watchers = (@issue.project.users.sort + @issue.watcher_users).uniq
|
||||
@available_watchers = @issue.watcher_users
|
||||
if @issue.project.users.count <= 20
|
||||
@available_watchers = (@available_watchers + @issue.project.users.sort).uniq
|
||||
end
|
||||
end
|
||||
|
||||
def check_for_default_issue_status
|
||||
|
||||
Reference in New Issue
Block a user