mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for stock status change (#5105)
- Recent refactor introduced bug - Update stock.js
This commit is contained in:
parent
256c9cb751
commit
8b6abe1505
@ -3169,7 +3169,11 @@ function setStockStatus(items, options={}) {
|
||||
note: {},
|
||||
},
|
||||
processBeforeUpload: function(data) {
|
||||
data.items = items;
|
||||
let item_pk_values = [];
|
||||
items.forEach(function(item) {
|
||||
item_pk_values.push(item.pk);
|
||||
});
|
||||
data.items = item_pk_values;
|
||||
return data;
|
||||
},
|
||||
onSuccess: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user