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
[24343] Allow PDFs to be served inline
Oliver Güntherf37d6d563d8d
diff --git a/app/models/attachment.rb b/app/models/attachment.rbindex cec5d4673ae..a44d18cd1ed 100644--- a/app/models/attachment.rb+++ b/app/models/attachment.rb@@ -100,7 +100,7 @@ class Attachment < ApplicationRecord# images are sent inlinedef inlineable?- is_plain_text? || is_image?+ is_plain_text? || is_image? || is_pdf?enddef is_plain_text?