mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Fix for stock status change (#5105)
- Recent refactor introduced bug - Update stock.js
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user