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