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

Ignore errors on initial render

Oliver Günther530c85a26602
diff --git a/app/controllers/work_packages/dialogs_controller.rb b/app/controllers/work_packages/dialogs_controller.rb
index f2e17578077..02a18fe4faf 100644
--- a/app/controllers/work_packages/dialogs_controller.rb
+++ b/app/controllers/work_packages/dialogs_controller.rb
@@ -53,8 +53,9 @@ class WorkPackages::DialogsController < ApplicationController
.new(model: initial, user: current_user, contract_class: WorkPackages::CreateContract)
.call(create_params)
- # Ignore call errors here, as we only want to build the work package
+ # We ignore errors here, as we only want to build the work package
@work_package = call.result
+ @work_package.errors.clear
end
def create_params