Merge pull request #3495 from BrokenEagle/fix-missing-super-search
Fix missing controllers for search[id] (Ref #3430)
This commit is contained in:
@@ -26,7 +26,8 @@ class Ban < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.search(params)
|
||||
q = where("true")
|
||||
q = super
|
||||
return q if params.blank?
|
||||
|
||||
if params[:banner_name]
|
||||
q = q.where("banner_id = (select _.id from users _ where lower(_.name) = ?)", params[:banner_name].mb_chars.downcase)
|
||||
|
||||
Reference in New Issue
Block a user