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

Add notice flash

Oliver Günther499f25a486bf
diff --git a/app/controllers/work_packages/dialogs_controller.rb b/app/controllers/work_packages/dialogs_controller.rb
index 2b59bbd5eaa..6a769576eba 100644
--- a/app/controllers/work_packages/dialogs_controller.rb
+++ b/app/controllers/work_packages/dialogs_controller.rb
@@ -46,6 +46,7 @@ class WorkPackages::DialogsController < ApplicationController
call = WorkPackages::CreateService.new(user: current_user).call(create_params)
if call.success?
+ flash[:notice] = I18n.t("work_package_relations_tab.relations.label_new_child_created")
redirect_back fallback_location: project_work_package_path(@project, call.result), status: :see_other
else
form_component = WorkPackages::Dialogs::CreateFormComponent.new(work_package: call.result, project: @project)
diff --git a/config/locales/en.yml b/config/locales/en.yml
index e94cc9e0c4c..c44c56df905 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -749,6 +749,7 @@ en:
title: "Lag (in days)"
caption: "The minimum number of working days to keep in between the two work packages."
relations:
+ label_new_child_created: "New work package created and added as a child"
label_relates_singular: "related to"
label_relates_plural: "related to"
label_relates_to_singular: "related to"