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
|
end
|
||||||
|
|
||||||
if params[:id].present?
|
if params[:id].present?
|
||||||
q = q.where("id = ?", params[:id])
|
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
|
||||||
end
|
end
|
||||||
|
|
||||||
if params[:creator_name].present?
|
if params[:creator_name].present?
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class BulkUpdateRequest < ActiveRecord::Base
|
|||||||
return q if params.blank?
|
return q if params.blank?
|
||||||
|
|
||||||
if params[:id].present?
|
if params[:id].present?
|
||||||
q = q.where("id = ?", params[:id].to_i)
|
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
|
||||||
end
|
end
|
||||||
|
|
||||||
q
|
q
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class TagAlias < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
if params[:id].present?
|
if params[:id].present?
|
||||||
q = q.where("id = ?", params[:id].to_i)
|
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
|
||||||
end
|
end
|
||||||
|
|
||||||
case params[:order]
|
case params[:order]
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class TagImplication < ActiveRecord::Base
|
|||||||
return q if params.blank?
|
return q if params.blank?
|
||||||
|
|
||||||
if params[:id].present?
|
if params[:id].present?
|
||||||
q = q.where("id = ?", params[:id].to_i)
|
q = q.where("id in (?)", params[:id].split(",").map(&:to_i))
|
||||||
end
|
end
|
||||||
|
|
||||||
if params[:name_matches].present?
|
if params[:name_matches].present?
|
||||||
|
|||||||
Reference in New Issue
Block a user