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

[#64049] PDF export shows empty table of associated work packages

as-op5bbc102e8b6a
diff --git a/app/models/work_package/pdf_export/export/wp/attributes.rb b/app/models/work_package/pdf_export/export/wp/attributes.rb
index 3a3240570f5..e1f169c6238 100644
--- a/app/models/work_package/pdf_export/export/wp/attributes.rb
+++ b/app/models/work_package/pdf_export/export/wp/attributes.rb
@@ -92,7 +92,7 @@ module WorkPackage::PDFExport::Export::Wp::Attributes
# QueryGroup are relative to our work package, so we need to adjust the filter
group.query.filters.each do |filter|
if filter.respond_to?(:has_templated_value?) && filter.has_templated_value?
- group.query.filters[0].values = [work_package.id]
+ filter.values = [work_package.id]
end
end
end