Set user_filter for queries without saved queries
This commit is contained in:
parent
9ea7947d6b
commit
b2fea6e7f3
@ -60,6 +60,8 @@ module AdditionalsQueriesHelper
|
||||
totalable_names: session_data.nil? ? nil : session_data[:totalable_names],
|
||||
sort_criteria: params[:sort].presence || (session_data.nil? ? nil : session_data[:sort_criteria]))
|
||||
@query.project = @project
|
||||
@query.user_filter = user_filter if user_filter
|
||||
|
||||
if params[:sort].present?
|
||||
@query.sort_criteria = params[:sort]
|
||||
# we have to write cache for sort order
|
||||
|
Loading…
Reference in New Issue
Block a user