From d684ed076bd0f8337a2c0b7b90bb922aa48e2e76 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 28 Sep 2020 20:10:29 +1000 Subject: [PATCH] Improve table filter naming --- InvenTree/stock/templates/stock/item_childs.html | 1 + InvenTree/templates/js/stock.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/stock/templates/stock/item_childs.html b/InvenTree/stock/templates/stock/item_childs.html index 1a8febbbea..a271852846 100644 --- a/InvenTree/stock/templates/stock/item_childs.html +++ b/InvenTree/stock/templates/stock/item_childs.html @@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), { part_details: true, ancestor: {{ item.id }}, }, + name: 'item-childs', groupByField: 'location', buttons: [ '#stock-options', diff --git a/InvenTree/templates/js/stock.html b/InvenTree/templates/js/stock.html index 9a9e629efe..7de6f01669 100644 --- a/InvenTree/templates/js/stock.html +++ b/InvenTree/templates/js/stock.html @@ -238,7 +238,7 @@ function loadStockTable(table, options) { var filters = {}; - var filterKey = options.filterKey || "stock"; + var filterKey = options.filterKey || options.name || "stock"; if (!options.disableFilters) { filters = loadTableFilters(filterKey);