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

follow up on https://github.com/opf/openproject/pull/19215

as-opb5a026cdaf5c
diff --git a/app/models/exports/formatters/hierarchy_formatter.rb b/app/models/exports/formatters/hierarchy_formatter.rb
index fec60692aaf..06aee69b495 100644
--- a/app/models/exports/formatters/hierarchy_formatter.rb
+++ b/app/models/exports/formatters/hierarchy_formatter.rb
@@ -38,14 +38,10 @@ module Exports
def format_hierarchy_item_for_export(item_value)
item = ::CustomField::Hierarchy::Item.find_by(id: item_value.to_s)
- return "#{item_value} #{I18n.t(:label_not_found)}" if item.nil?
+ return "#{item_value} #{I18n.t(:label_not_found)}" unless item
item.ancestry_path
end
-
- def hierarchy_item_service
- ::CustomFields::Hierarchy::HierarchicalItemService.new
- end
end
end
end