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

Merge branch 'dev' into feature/48857-cover-page-for-pdf-reports

Andrej Sandorf71de9f85fd4d
diff --cc app/models/work_package/pdf_export/work_package_list_to_pdf.rb
index d7143265031,00aa72df162..949b1644f50
--- a/app/models/work_package/pdf_export/work_package_list_to_pdf.rb
+++ b/app/models/work_package/pdf_export/work_package_list_to_pdf.rb
@@@ -100,16 -99,11 +100,16 @@@ class WorkPackage::PDFExport::WorkPacka
true
end
+ def with_cover?
+ wants_report?
+ end
+
def render_work_packages_pdfs(work_packages, filename)
+ write_cover_page! if with_cover?
write_title!
- write_work_packages_toc! work_packages, @id_wp_meta_map if with_descriptions?
- write_work_packages_overview! work_packages unless with_descriptions?
- write_work_packages_sums! work_packages if with_sums_table? && with_descriptions?
+ write_work_packages_toc! work_packages, @id_wp_meta_map if wants_report?
- write_work_packages_overview! work_packages, @id_wp_meta_map unless wants_report?
++ write_work_packages_overview! work_packages unless wants_report?
+ write_work_packages_sums! work_packages if with_sums_table? && wants_report?
if should_be_batched?(work_packages)
render_batched(work_packages, filename)
else