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

[37158] Hide meta settings when selecting a template (#9257)

Oliver Günther780fbf452e78
diff --git a/frontend/src/app/modules/projects/components/new-project/new-project.component.ts b/frontend/src/app/modules/projects/components/new-project/new-project.component.ts
index 2426024866b..eed5f3262bb 100644
--- a/frontend/src/app/modules/projects/components/new-project/new-project.component.ts
+++ b/frontend/src/app/modules/projects/components/new-project/new-project.component.ts
@@ -106,7 +106,7 @@ export class NewProjectComponent extends UntilDestroyedMixin implements OnInit {
}
private isMeta(key:string):boolean {
- return key.startsWith('copy');
+ return key.startsWith('_meta.');
}
private setParentAsPayload(parentId:string) {
diff --git a/spec/features/projects/template_spec.rb b/spec/features/projects/template_spec.rb
index 8ffbd7354e2..45c68b0d920 100644
--- a/spec/features/projects/template_spec.rb
+++ b/spec/features/projects/template_spec.rb
@@ -98,6 +98,10 @@ describe 'Project templates', type: :feature, js: true do
page.find('.form--fieldset-legend', text: 'ADVANCED SETTINGS').click
status_field.expect_selected 'ON TRACK'
+ # It does not show the copy meta flags
+ expect(page).to have_no_selector('[data-qa-field-name="copyMembers"]')
+ expect(page).to have_no_selector('[data-qa-field-name="sendNotifications"]')
+
# Update status to off track
status_field.select_option 'Off track'
parent_field.select_option other_project.name