Fix #4149: Add missing post search options on applicable models.
This commit is contained in:
@@ -47,7 +47,7 @@ class ForumPost < ApplicationRecord
|
||||
def search(params)
|
||||
q = super
|
||||
q = q.permitted
|
||||
q = q.search_attributes(params, :creator, :topic_id, :is_deleted)
|
||||
q = q.search_attributes(params, :creator, :updater, :topic_id, :is_deleted, :body)
|
||||
q = q.text_attribute_matches(:body, params[:body_matches], index_column: :text_index)
|
||||
|
||||
if params[:topic_title_matches].present?
|
||||
|
||||
Reference in New Issue
Block a user