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(rubocop): obey linting
as-op137ef133f113
diff --git a/app/models/work_package/pdf_export/table_of_contents.rb b/app/models/work_package/pdf_export/table_of_contents.rbindex 18818a34f3b..2b7174b604c 100644--- a/app/models/work_package/pdf_export/table_of_contents.rb+++ b/app/models/work_package/pdf_export/table_of_contents.rb@@ -143,12 +143,15 @@ module WorkPackage::PDFExport::TableOfContentsdef write_toc_item!(toc_item, levels_indent_list)y = pdf.ypart_style, toc_item_style = build_toc_item_styles(toc_item)-indent = levels_indent_list[toc_item[:level] - 1]+write_part_float(indent[:level_indent], toc_item[:level_string], part_style)write_part_float(0, toc_item[:page_nr_string], part_style.merge({ align: :right }))write_toc_item_subject!(toc_item, indent[:subject_index], toc_item_style)+ write_toc_item_link(toc_item, y)+ end+ def write_toc_item_link(toc_item, y)rect = [pdf.bounds.absolute_right, pdf.y, pdf.bounds.absolute_left, y]pdf.link_annotation(rect, Border: [0, 0, 0], Dest: toc_item[:id].to_s)end