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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
obey rubocop
as-op14656921e00a
diff --git a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rbindex d6e1843a982..47656886dc0 100644--- a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb+++ b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb@@ -151,18 +151,18 @@ class CostQuery::PDF::TimesheetGeneratorall_entries.uniq { |entry| entry.user.id }.map(&:user)- .sort_by { |user| user.name }+ .sort_by(&:name)enddef all_entries@all_entries ||= begin- ids = query- .each_direct_result- .filter { |r| r.fields["type"] == "TimeEntry" }- .flat_map { |r| r.fields["id"] }+ ids = query+ .each_direct_result+ .filter { |r| r.fields["type"] == "TimeEntry" }+ .flat_map { |r| r.fields["id"] }- TimeEntry.where(id: ids).includes(%i[user activity work_package project])- end+ TimeEntry.where(id: ids).includes(%i[user activity work_package project])+ endenddef build_table_rows(entries, wants_sum_row)@@ -240,11 +240,11 @@ class CostQuery::PDF::TimesheetGeneratordef build_table_row_comment(entry)[{- content: entry.comments,- text_color: COMMENT_FONT_COLOR,- font_style: :italic,- colspan: table_columns_widths.size- }]+ content: entry.comments,+ text_color: COMMENT_FONT_COLOR,+ font_style: :italic,+ colspan: table_columns_widths.size+ }]enddef table_header_columns@@ -469,7 +469,7 @@ class CostQuery::PDF::TimesheetGenerator[format_date_with_weekday(date)] + rowend- def build_sum_table_sum_cell(sum, user, date)+ def build_sum_table_sum_cell(sum, _user, _date){content: format_hours(sum),align: :right, inline_format: true