]> source.dussan.org Git - redmine.git/commitdiff
Failing test with 1.8.7 and jruby (#10538).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Mar 2012 20:21:04 +0000 (20:21 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Mar 2012 20:21:04 +0000 (20:21 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9270 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/watchers_controller.rb

index 44bb2744397adab781745e866d96bd748733c919..0a427801c55f0f92688f6ee8efe9af896a584900 100644 (file)
@@ -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