mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-27 14:37:35 +08:00
Fix global search for tasks [SCI-12449]
This commit is contained in:
parent
a066d8f7ca
commit
d2dfa3b8af
1 changed files with 0 additions and 2 deletions
|
|
@ -115,8 +115,6 @@ class MyModule < ApplicationRecord
|
|||
teams = user.teams,
|
||||
_options = {}
|
||||
)
|
||||
teams = options[:teams] || current_team || user.teams.select(:id)
|
||||
|
||||
new_query = distinct.left_joins(:task_comments, :tags, user_my_modules: :user)
|
||||
.readable_by_user(user, teams)
|
||||
.where_attributes_like_boolean(SEARCHABLE_ATTRIBUTES, query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue