mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user