Improve table filter naming

This commit is contained in:
Oliver Walters 2020-09-28 20:10:29 +10:00
parent f253bf1843
commit d684ed076b
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
part_details: true, part_details: true,
ancestor: {{ item.id }}, ancestor: {{ item.id }},
}, },
name: 'item-childs',
groupByField: 'location', groupByField: 'location',
buttons: [ buttons: [
'#stock-options', '#stock-options',

View File

@ -238,7 +238,7 @@ function loadStockTable(table, options) {
var filters = {}; var filters = {};
var filterKey = options.filterKey || "stock"; var filterKey = options.filterKey || options.name || "stock";
if (!options.disableFilters) { if (!options.disableFilters) {
filters = loadTableFilters(filterKey); filters = loadTableFilters(filterKey);