Support searching list of ids for artists, aliases, implications, BURs
fix #2455
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user