mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Fixed shopping_list_id when adding products from /stockoverview to the shopping list (fixes #1442)
This commit is contained in:
parent
5c3809aa33
commit
5153818b4e
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace Grocy\Controllers;
|
||||
|
||||
use Grocy\Controllers\Users\User;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user