From 4256d09e80163dc90f58406210b996f1f9dbe254 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 10 Apr 2020 23:54:10 +1000 Subject: [PATCH] Bugfix for bootstrap-table.j "Refreshing" the table options did not work proper good --- .../InvenTree/static/script/bootstrap/bootstrap-table.js | 5 +---- InvenTree/InvenTree/static/script/inventree/stock.js | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/InvenTree/InvenTree/static/script/bootstrap/bootstrap-table.js b/InvenTree/InvenTree/static/script/bootstrap/bootstrap-table.js index 4567f29ac9..5fdfd2ee58 100644 --- a/InvenTree/InvenTree/static/script/bootstrap/bootstrap-table.js +++ b/InvenTree/InvenTree/static/script/bootstrap/bootstrap-table.js @@ -3272,10 +3272,7 @@ }, { key: 'getOptions', value: function getOptions() { - // deep copy and remove data - var options = JSON.parse(JSON.stringify(this.options)); - delete options.data; - return options; + return this.options; } }, { key: 'getSelections', diff --git a/InvenTree/InvenTree/static/script/inventree/stock.js b/InvenTree/InvenTree/static/script/inventree/stock.js index f79a4bf217..0f5936a5ed 100644 --- a/InvenTree/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/InvenTree/static/script/inventree/stock.js @@ -359,9 +359,6 @@ function loadStockTable(table, options) { linkButtonsToSelection(table, options.buttons); } - // Display the filters - updateStockFilterList(filterListElement); - function stockAdjustment(action) { var items = $("#stock-table").bootstrapTable("getSelections");