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

[#48421] Dedicated logo for the pdf export of work plans

as-op89577f62a7a5
diff --git a/app/models/work_package/pdf_export/page.rb b/app/models/work_package/pdf_export/page.rb
index 9d0909463c3..0e23d4482a2 100644
--- a/app/models/work_package/pdf_export/page.rb
+++ b/app/models/work_package/pdf_export/page.rb
@@ -70,9 +70,9 @@ module WorkPackage::PDFExport::Page
def custom_logo_image
return unless CustomStyle.current.present? &&
- CustomStyle.current.logo.present? && CustomStyle.current.logo.local_file.present?
+ CustomStyle.current.export_logo.present? && CustomStyle.current.export_logo.local_file.present?
- image_file = CustomStyle.current.logo.local_file.path
+ image_file = CustomStyle.current.export_logo.local_file.path
content_type = OpenProject::ContentTypeDetector.new(image_file).detect
return unless pdf_embeddable?(content_type)