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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
naming fix: build_in => built_in resolves https://github.com/opf/openproject/pull/17840#pullrequestreview-2626598219
as-opc507a73411a8
diff --git a/app/models/type/pdf_export_templates.rb b/app/models/type/pdf_export_templates.rbindex 219f3315b80..96dce81c6ca 100644--- a/app/models/type/pdf_export_templates.rb+++ b/app/models/type/pdf_export_templates.rb@@ -37,8 +37,8 @@ class Type::PdfExportTemplatesdef listdisabled = @type.export_templates_disabled || []- templates = build_in_templates.map do |build_in_template|- Template.new(**build_in_template, enabled: disabled.exclude?(build_in_template[:id]))+ templates = built_in_templates.map do |built_in_template|+ Template.new(**built_in_template, enabled: disabled.exclude?(built_in_template[:id]))endorder = @type.export_templates_order || []return templates if order.empty?@@ -52,10 +52,10 @@ class Type::PdfExportTemplatesenddef find(template_id)- build_in_template = build_in_templates.find { |t| t[:id] == template_id }- if build_in_template+ built_in_template = built_in_templates.find { |t| t[:id] == template_id }+ if built_in_templatedisabled = @type.export_templates_disabled || []- Template.new(**build_in_template, enabled: disabled.exclude?(build_in_template[:id]))+ Template.new(**built_in_template, enabled: disabled.exclude?(built_in_template[:id]))endend@@ -64,7 +64,7 @@ class Type::PdfExportTemplatesenddef disable_all- @type.export_templates_disabled = build_in_templates.pluck(:id)+ @type.export_templates_disabled = built_in_templates.pluck(:id)enddef toggle(template_id)@@ -87,7 +87,7 @@ class Type::PdfExportTemplatesprivate- def build_in_templates+ def built_in_templates::WorkPackage::PDFExport::Templates::TEMPLATESendend