mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 01:59:28 +08:00
Fix duplicarte results in activities filters [SCI-5948] (#3579)
This commit is contained in:
parent
a18839f529
commit
c85f5187f3
1 changed files with 2 additions and 2 deletions
|
@ -148,9 +148,9 @@ class GlobalActivitiesController < ApplicationController
|
|||
matched = matched.where(project_id: selected_subject['Project']) if subject == Experiment
|
||||
matched = matched.where(experiment_id: selected_subject['Experiment']) if subject == MyModule
|
||||
matched = matched.where(repository_id: selected_subject['RepositoryBase']) if subject == RepositoryRow
|
||||
matched = matched.limit(Constants::SEARCH_LIMIT)
|
||||
|
||||
matched = matched.limit(Constants::SEARCH_LIMIT).pluck(:id, :name)
|
||||
matched.map { |pr| { value: pr[0], label: escape_input(pr[1]) } }
|
||||
matched.map { |pr| { value: pr.id, label: escape_input(pr.name) } }
|
||||
end
|
||||
|
||||
def activity_filter_params
|
||||
|
|
Loading…
Reference in a new issue