From: Jean-Philippe Lang Date: Sun, 25 Mar 2012 19:35:32 +0000 (+0000) Subject: Remove duplicate watchers (#10538). X-Git-Tag: 1.4.0~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6115a079ec0085bd84aefa8dc48e38ed3a7d23c0;p=redmine.git Remove duplicate watchers (#10538). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9268 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 4c45ff7b2..44bb27443 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -72,7 +72,7 @@ class WatchersController < ApplicationController format.js do render :update do |page| users.each do |user| - page.select("#issue_watcher_user_ids_#{user.id}").each(&:hide) + page.select("#issue_watcher_user_ids_#{user.id}").each(&:remove) end page.insert_html :bottom, 'watchers_inputs', :text => watchers_checkboxes(nil, users, true) end