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
fix missing border on table split after page break
as-opa6fc8eeb7069
diff --git a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rbindex c1a40cdccd6..f22a01ea24b 100644--- a/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb+++ b/modules/reporting/app/workers/cost_query/pdf/timesheet_generator.rb@@ -124,15 +124,16 @@ class CostQuery::PDF::TimesheetGenerator# TODO: write user on new page if table does not fit on the samewrite_user(user_id)pdf.make_table(- rows, header: false,- width: table_width,- column_widths: table_columns_widths,- cell_style: {- border_color: "BBBBBB",- border_width: 0.5,- borders: [:top],- padding: [5, 5, 8, 5]- }+ rows,+ header: false,+ width: table_width,+ column_widths: table_columns_widths,+ cell_style: {+ border_color: "BBBBBB",+ border_width: 0.5,+ borders: %i[top bottom],+ padding: [5, 5, 8, 5]+ }) do |table|table.columns(0).borders = %i[top bottom left right]table.columns(-1).style do |c|@@ -142,17 +143,20 @@ class CostQuery::PDF::TimesheetGeneratorif c.colspan > 1c.borders = %i[left right]c.padding = [0, 5, 8, 5]+ row_nr = c.row - 1+ values = table.columns(1..-1).rows(row_nr..row_nr)+ values.each do |cell|+ cell.borders = cell.borders - [:bottom]+ endendendtable.rows(0).style do |c|c.borders = c.borders + [:top]c.font_style = :boldend- table.rows(-1).style do |c|- c.borders = c.borders + [:bottom]- endend.drawend+# rubocop:enable Metrics/AbcSizedef sorted_results@@ -169,6 +173,7 @@ class CostQuery::PDF::TimesheetGeneratorendpdf.move_down(16)end+# rubocop:enable Metrics/AbcSizedef write_heading!@@ -204,6 +209,6 @@ class CostQuery::PDF::TimesheetGeneratorenddef with_cover?- true+ falseendend