summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 82b8905e2..885b1c5b1 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -217,6 +217,16 @@ module IssuesHelper
message
end
+ # Returns an array of users that are proposed as watchers
+ # on the new issue form
+ def users_for_new_issue_watchers(issue)
+ users = issue.watcher_users
+ if issue.project.users.count <= 20
+ users = (users + issue.project.users.sort).uniq
+ end
+ users
+ end
+
def sidebar_queries
unless @sidebar_queries
@sidebar_queries = IssueQuery.visible.