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

Rename render_child_items

Oliver Günther3dfa191cbde0
diff --git a/app/components/work_package_relations_tab/index_component.html.erb b/app/components/work_package_relations_tab/index_component.html.erb
index 3682a3d76da..64d609bcde6 100644
--- a/app/components/work_package_relations_tab/index_component.html.erb
+++ b/app/components/work_package_relations_tab/index_component.html.erb
@@ -18,7 +18,7 @@
t(:label_relation)
end
- render_child_items(menu)
+ render_child_menu_items(menu)
if should_render_add_relations?
Relation::TYPES.each do |relation_type, type_configuration_hash|
diff --git a/app/components/work_package_relations_tab/index_component.rb b/app/components/work_package_relations_tab/index_component.rb
index 811a6efb8bc..f2926ef8193 100644
--- a/app/components/work_package_relations_tab/index_component.rb
+++ b/app/components/work_package_relations_tab/index_component.rb
@@ -98,14 +98,14 @@ class WorkPackageRelationsTab::IndexComponent < ApplicationComponent
t("work_package_relations_tab.label_add_child_button")
end
- render_child_items(menu)
+ render_child_menu_items(menu)
end
end
end
end
end
- def render_child_items(menu) # rubocop:disable Metrics/AbcSize
+ def render_child_menu_items(menu) # rubocop:disable Metrics/AbcSize
return unless should_render_add_child?
if helpers.current_user.allowed_in_project?(:add_work_packages, @work_package.project)