summaryrefslogtreecommitdiffstats
path: root/app/controllers/watchers_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-25 20:21:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-25 20:21:04 +0000
commit274566f13b3a252298506c71e7b364007b177135 (patch)
treef325232720346a470df366b747b63a9ee53a54fe /app/controllers/watchers_controller.rb
parent706f8b1691cdf401d0c135afa5ec9d9f22d04838 (diff)
downloadredmine-274566f13b3a252298506c71e7b364007b177135.tar.gz
redmine-274566f13b3a252298506c71e7b364007b177135.zip
Failing test with 1.8.7 and jruby (#10538).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9270 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/watchers_controller.rb')
-rw-r--r--app/controllers/watchers_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb
index 44bb27443..0a427801c 100644
--- a/app/controllers/watchers_controller.rb
+++ b/app/controllers/watchers_controller.rb
@@ -72,7 +72,9 @@ class WatchersController < ApplicationController
format.js do
render :update do |page|
users.each do |user|
- page.select("#issue_watcher_user_ids_#{user.id}").each(&:remove)
+ page.select("#issue_watcher_user_ids_#{user.id}").each do |item|
+ page.remove item
+ end
end
page.insert_html :bottom, 'watchers_inputs', :text => watchers_checkboxes(nil, users, true)
end