mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 09:55:28 +00:00
Improve table filter naming
This commit is contained in:
1 parent
f253bf1843
commit
d684ed076b
2 files changed
+2
-1
No files matched your search
@@ -31,6 +31,7 @@ loadStockTable($("#stock-table"), {
|
||||
part_details: true,
|
||||
ancestor: {{ item.id }},
|
||||
},
|
||||
name: 'item-childs',
|
||||
groupByField: 'location',
|
||||
buttons: [
|
||||
'#stock-options',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user