mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Fixed shopping_list_id when adding products from /stockoverview to the shopping list (fixes #1442)
This commit is contained in:
@@ -23,6 +23,9 @@ $('#save-shoppinglist-button').on('click', function(e)
|
||||
jsonData.product_amount = jsonData.amount;
|
||||
delete jsonData.amount;
|
||||
|
||||
jsonData.list_id = jsonData.shopping_list_id;
|
||||
delete jsonData.shopping_list_id;
|
||||
|
||||
Grocy.Api.Post('stock/shoppinglist/add-product', jsonData,
|
||||
function(result)
|
||||
{
|
||||
|
Reference in New Issue
Block a user