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 controller only for recurring meetings

Oliver Günther6a3f6d8ae415
diff --git a/modules/meeting/app/components/meetings/index/form_component.html.erb b/modules/meeting/app/components/meetings/index/form_component.html.erb
index 953c65b6b98..01b12e0dc22 100644
--- a/modules/meeting/app/components/meetings/index/form_component.html.erb
+++ b/modules/meeting/app/components/meetings/index/form_component.html.erb
@@ -6,7 +6,10 @@
method: form_method,
data: {
turbo: true,
- controller: "show-when-value-selected recurring-meetings--form",
+ controller: [
+ "show-when-value-selected",
+ @meeting.is_a?(RecurringMeeting) ? "recurring-meetings--form" : nil,
+ ].compact.join(" "),
"application-target": "dynamic"
},
html: {