GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit a2333d71 authored by jplang's avatar jplang

Don't compare with Hash.

git-svn-id: https://svn.redmine.org/redmine/trunk@15670 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3c34bbee
......@@ -35,7 +35,7 @@ class WatchersController < ApplicationController
def create
user_ids = []
if params[:watcher].is_a?(Hash)
if params[:watcher]
user_ids << (params[:watcher][:user_ids] || params[:watcher][:user_id])
else
user_ids << params[:user_id]
......@@ -54,7 +54,7 @@ class WatchersController < ApplicationController
end
def append
if params[:watcher].is_a?(Hash)
if params[:watcher]
user_ids = params[:watcher][:user_ids] || [params[:watcher][:user_id]]
@users = User.active.visible.where(:id => user_ids).to_a
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment