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
Document errors from contract
Oliver Günther7502cd777d61
diff --git a/config/settings.yml b/config/settings.ymlindex c5fcedbf9e9..41bd744250d 100644--- a/config/settings.yml+++ b/config/settings.yml@@ -326,6 +326,8 @@ session_ttl_enabled:session_ttl:format: intdefault: 120+default_notification_option:+ default: 'only_my_events'emails_header:serialized: truedefault:diff --git a/modules/documents/app/controllers/documents_controller.rb b/modules/documents/app/controllers/documents_controller.rbindex 86b58661f7e..1c3f4a22491 100644--- a/modules/documents/app/controllers/documents_controller.rb+++ b/modules/documents/app/controllers/documents_controller.rb@@ -73,6 +73,7 @@ class DocumentsController < ApplicationControllerredirect_to project_documents_path(@project)else@document = call.result+ @errors = call.errorsrender action: 'new'endend@@ -91,6 +92,7 @@ class DocumentsController < ApplicationControllerredirect_to action: 'show', id: @documentelse@document = call.result+ @errors = call.errorsrender action: 'edit'endenddiff --git a/modules/documents/app/views/documents/_form.html.erb b/modules/documents/app/views/documents/_form.html.erbindex 26cb35da227..3957fc46b5a 100644--- a/modules/documents/app/views/documents/_form.html.erb+++ b/modules/documents/app/views/documents/_form.html.erb@@ -27,7 +27,7 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= error_messages_for 'document' %>+<%= error_messages_for_contract @document, @errors %><div class="form--field -required"><%= f.select :category_id,