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
feat(logo): guard CustomStyle.current to not being defined in specs
as-op95cefaa48f0d
diff --git a/app/models/work_package/pdf_export/page.rb b/app/models/work_package/pdf_export/page.rbindex eb810d73abf..854291ea2d4 100644--- a/app/models/work_package/pdf_export/page.rb+++ b/app/models/work_package/pdf_export/page.rb@@ -23,7 +23,7 @@ module WorkPackage::PDFExport::Pageenddef custom_logo_image- return unless CustomStyle.current.logo.present? && CustomStyle.current.logo.local_file.present?+ return unless CustomStyle.current.present? && CustomStyle.current.logo.present? && CustomStyle.current.logo.local_file.present?image_file = CustomStyle.current.logo.local_file.pathcontent_type = OpenProject::ContentTypeDetector.new(image_file).detect