Fix displaying of archived folders in active view [SCI-8542] (#5513)

This commit is contained in:
Alex Kriuchykhin 2023-05-30 11:14:24 +02:00 committed by GitHub
parent 25c2e3baa6
commit 9819425ba1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,6 +99,7 @@ module Navigator
object&.project_folder
end
current_team.project_folders.where(parent_folder: folder)
.where(project_folders: { archived: archived })
.left_outer_joins(:projects, project_folders: {})
.joins(
"LEFT OUTER JOIN (#{Project.viewable_by_user(current_user, current_team).to_sql}) " \