2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-02 13:28:49 +00:00

Fix for stock status change (#5105)

- Recent refactor introduced bug
- Update stock.js
This commit is contained in:
Oliver 2023-06-26 12:14:44 +10:00 committed by GitHub
parent 256c9cb751
commit 8b6abe1505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3169,7 +3169,11 @@ function setStockStatus(items, options={}) {
note: {}, note: {},
}, },
processBeforeUpload: function(data) { 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; return data;
}, },
onSuccess: function() { onSuccess: function() {