summaryrefslogtreecommitdiffstats
path: root/app/views/watchers/_new.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-19 10:01:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-19 10:01:14 +0000
commita525bc8e98f6e7c88a820ca42df54e58d92a5d1c (patch)
treec395fe1764af55f19374a3d43c65e1804072ece3 /app/views/watchers/_new.html.erb
parentb933cd7a65948f6d0b8b8359945342b04d273da2 (diff)
downloadredmine-a525bc8e98f6e7c88a820ca42df54e58d92a5d1c.tar.gz
redmine-a525bc8e98f6e7c88a820ca42df54e58d92a5d1c.zip
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
Diffstat (limited to 'app/views/watchers/_new.html.erb')
-rw-r--r--app/views/watchers/_new.html.erb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/watchers/_new.html.erb b/app/views/watchers/_new.html.erb
index e3443a1cd..6282d59aa 100644
--- a/app/views/watchers/_new.html.erb
+++ b/app/views/watchers/_new.html.erb
@@ -17,11 +17,7 @@
:project_id => @project) }')" %>
<div id="users_for_watcher">
- <%= principals_check_box_tags(
- 'watcher[user_ids][]',
- (watched ?
- watched.addable_watcher_users : User.active.limit(100).all)
- ) %>
+ <%= principals_check_box_tags('watcher[user_ids][]', users) %>
</div>
<p class="buttons">