From 72be63572e9eb2c1604799de552337d3c1d6667e Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 Feb 2022 14:52:38 +1100 Subject: [PATCH] Fixes issue with BOM export - Cascading BOM export was broken --- InvenTree/templates/js/translated/bom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/templates/js/translated/bom.js b/InvenTree/templates/js/translated/bom.js index 23b9a8cd50..6e4bfdcf25 100644 --- a/InvenTree/templates/js/translated/bom.js +++ b/InvenTree/templates/js/translated/bom.js @@ -77,7 +77,7 @@ function exportBom(part_id, options={}) { value: inventreeLoad('bom-export-format', 'csv'), choices: exportFormatOptions(), }, - cascading: { + cascade: { label: '{% trans "Cascading" %}', help_text: '{% trans "Download cascading / multi-level BOM" %}', type: 'boolean', @@ -118,7 +118,7 @@ function exportBom(part_id, options={}) { onSubmit: function(fields, opts) { // Extract values from the form - var field_names = ['format', 'cascading', 'levels', 'parameter_data', 'stock_data', 'manufacturer_data', 'supplier_data']; + var field_names = ['format', 'cascade', 'levels', 'parameter_data', 'stock_data', 'manufacturer_data', 'supplier_data']; var url = `/part/${part_id}/bom-download/?`;