Set user_filter for queries without saved queries

This commit is contained in:
Alexander Meindl 2022-04-09 18:43:11 +02:00
parent 9ea7947d6b
commit b2fea6e7f3

View File

@ -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