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

fix typo in finish direct upload job

Markus Kahle8349570ce2a
diff --git a/app/workers/attachments/finish_direct_upload_job.rb b/app/workers/attachments/finish_direct_upload_job.rb
index dcf87831010..18865d4cc3d 100644
--- a/app/workers/attachments/finish_direct_upload_job.rb
+++ b/app/workers/attachments/finish_direct_upload_job.rb
@@ -79,7 +79,7 @@ class Attachments::FinishDirectUploadJob < ApplicationJob
contract = create_contract attachment, whitelist
unless contract.valid?
- errors = contracterrors.full_messages.join(", ")
+ errors = contract.errors.full_messages.join(", ")
raise "Failed to validate attachment #{attachment.id}: #{errors}"
end
end