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

Also select type to correctly map users

Oliver Günthere0edd84878f3
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 1808c08da8e..088dfe65dd0 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -334,7 +334,7 @@ class CustomField < ApplicationRecord
end
scope
- .select(*(User::USER_FORMATS_STRUCTURE[Setting.user_format].map(&:to_s) << "id"))
+ .select(*User::USER_FORMATS_STRUCTURE[Setting.user_format].map(&:to_s), "id", "type")
end
end