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

[#63566] Order of users is not alphabetical in the details tables of PDF time sheet

as-opb1e9e5722d5b
diff --git a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb
index bcc02cafbc2..57ddf2d8622 100644
--- a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb
+++ b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb
@@ -146,6 +146,7 @@ class CostQuery::PDF::TimesheetGenerator
def grouped_by_user_entries
all_entries
.group_by(&:user)
+ .sort_by { |user, _entries| user.name }
end
def all_users