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

obey rubocop

as-op9020e0f31359
diff --git a/app/models/work_package/pdf_export/export/wp/attributes.rb b/app/models/work_package/pdf_export/export/wp/attributes.rb
index aa6ee910142..317c8c9c86e 100644
--- a/app/models/work_package/pdf_export/export/wp/attributes.rb
+++ b/app/models/work_package/pdf_export/export/wp/attributes.rb
@@ -163,7 +163,7 @@ module WorkPackage::PDFExport::Export::Wp::Attributes
def form_config_group_to_column_entries_rows(list)
nr = page_orientation_landscape? ? 4 : 2
0.step(list.length - 1, nr).map do |i|
- nr.times.map do |j|
+ Array.new(nr).each_with_index.map do |_, j|
build_columns_table_cells(list[i + j])
end.flatten
end