]> source.dussan.org Git - redmine.git/commitdiff
Remove duplicate watchers (#10538).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Mar 2012 19:35:32 +0000 (19:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 25 Mar 2012 19:35:32 +0000 (19:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9268 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/watchers_controller.rb

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