Support searching list of ids for artists, aliases, implications, BURs

fix #2455
This commit is contained in:
Toks
2015-07-25 00:13:29 -04:00
parent cc6da3ff89
commit b22670a2be
4 changed files with 4 additions and 4 deletions

View File

@@ -410,7 +410,7 @@ class Artist < ActiveRecord::Base
end
if params[:id].present?
q = q.where("id = ?", params[:id])
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
end
if params[:creator_name].present?

View File

@@ -22,7 +22,7 @@ class BulkUpdateRequest < ActiveRecord::Base
return q if params.blank?
if params[:id].present?
q = q.where("id = ?", params[:id].to_i)
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
end
q

View File

@@ -34,7 +34,7 @@ class TagAlias < ActiveRecord::Base
end
if params[:id].present?
q = q.where("id = ?", params[:id].to_i)
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
end
case params[:order]

View File

@@ -87,7 +87,7 @@ class TagImplication < ActiveRecord::Base
return q if params.blank?
if params[:id].present?
q = q.where("id = ?", params[:id].to_i)
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
end
if params[:name_matches].present?