From 274566f13b3a252298506c71e7b364007b177135 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 25 Mar 2012 20:21:04 +0000 Subject: [PATCH] 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 --- app/controllers/watchers_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5