Use custom fields in filter throw error 500 #1395

This commit is contained in:
Karel Pičman 2022-08-25 14:10:08 +02:00
parent af3c93cbea
commit dc2ee263cb

View File

@ -88,9 +88,8 @@ class DmsfQuery < Query
def base_scope def base_scope
unless @scope unless @scope
# @scope = [dmsf_folders_scope, dmsf_folder_links_scope, dmsf_projects_scope, dmsf_files_scope, @scope = [dmsf_folders_scope, dmsf_folder_links_scope, dmsf_projects_scope, dmsf_files_scope,
# dmsf_file_links_scope, dmsf_url_links_scope].compact.inject(:union_all) dmsf_file_links_scope, dmsf_url_links_scope].compact.inject(:union_all)
@scope = [dmsf_folders_scope, dmsf_files_scope].compact.inject(:union_all)
end end
@scope @scope
end end