mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Fix search in team members table [SCI-7289]
This commit is contained in:
parent
d70428c6fe
commit
830248ada9
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ class TeamUsersDatatable < CustomDatatable
|
|||
casted_column = ::Arel::Nodes::NamedFunction.new(
|
||||
'CAST',
|
||||
[Arel.sql(
|
||||
"to_char( users.created_at, '#{formated_date}' ) AS VARCHAR"
|
||||
"to_char( user_assignments.created_at, '#{formated_date}' ) AS VARCHAR"
|
||||
)]
|
||||
)
|
||||
else
|
||||
|
|
@ -97,7 +97,7 @@ class TeamUsersDatatable < CustomDatatable
|
|||
# Query database for records (this will be later paginated and filtered)
|
||||
# after that "data" function will return json
|
||||
def get_raw_records
|
||||
@team.user_assignments.includes(:user)
|
||||
@team.user_assignments.joins(:user)
|
||||
end
|
||||
|
||||
def sort_records(records)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue