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

Restrict type after principal filter

Oliver Günther35ec946ae63e
diff --git a/modules/costs/app/helpers/costlog_helper.rb b/modules/costs/app/helpers/costlog_helper.rb
index f0f2acab930..a27c3dfc433 100644
--- a/modules/costs/app/helpers/costlog_helper.rb
+++ b/modules/costs/app/helpers/costlog_helper.rb
@@ -38,8 +38,9 @@ module CostlogHelper
end
def user_collection_for_select_options(_options = {})
- User
+ Principal
.possible_assignee(@project)
+ .where(type: 'User')
.map { |t| [t.name, t.id] }
end