Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

compact on roles

Oliver Günther98d92b4b994a
diff --git a/app/models/custom_actions/conditions/role.rb b/app/models/custom_actions/conditions/role.rb
index d6c7756b03f..71703a7f85d 100644
--- a/app/models/custom_actions/conditions/role.rb
+++ b/app/models/custom_actions/conditions/role.rb
@@ -41,7 +41,7 @@ class CustomActions::Conditions::Role < CustomActions::Conditions::Base
with_request_store(projects_of(work_packages)) do |projects|
projects.map do |project|
user.roles_for_project(project)
- end.flatten
+ end.compact.flatten
end
end