Merge pull request #21949 from opf/bug/71859-wp-comment-is-missing-text-if-project-initiation-request-has-default-setting

[#71859] WP comment is missing text if project initiation request has default settings
This commit is contained in:
Jens Ulferts
2026-02-11 13:27:51 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
@@ -100,9 +100,6 @@ module Projects
label: I18n.t("settings.project_initiation_request.submission.work_package_comment"),
caption: I18n.t("settings.project_initiation_request.submission.work_package_comment_caption"),
required: false,
value: model.project_creation_wizard_work_package_comment.presence || I18n.t(
"settings.project_initiation_request.submission.work_package_comment_default", project_name: model.name
),
rich_text_options: {
showAttachments: false,
editorType: "constrained"
+8
View File
@@ -66,6 +66,14 @@ module Projects::CreationWizard
super.presence || project_creation_wizard_default_status_when_submitted&.id
end
def project_creation_wizard_work_package_comment
super.presence ||
I18n.t(
"settings.project_initiation_request.submission.work_package_comment_default",
project_name: name
)
end
def project_creation_wizard_default_work_package_type
types.first
end