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

increase tsv extracted check resilience

ulfertsf844023b1914
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index ccea9a1cb2a..b009ff305af 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -236,7 +236,11 @@ class Attachment < ActiveRecord::Base
.pluck(:container_type)
.compact
.select do |container_class|
- container_class.constantize.attachment_tsv_extracted?
+ klass = container_class.constantize
+
+ klass.respond_to?(:attachment_tsv_extracted?) && klass.attachment_tsv_extracted?
+ rescue NameError
+ false
end
end