mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Fixed API call AddProductToShoppingList (#376)
$productId->id was undefined, therefore all items added to the shopping list with the API call had a null entry for "product_id"
This commit is contained in:
committed by
Bernd Bestel
parent
d8be254ff3
commit
f444d3e095
@@ -592,7 +592,7 @@ class StockService extends BaseService
|
|||||||
else // Insert
|
else // Insert
|
||||||
{
|
{
|
||||||
$shoppinglistRow = $this->Database->shopping_list()->createRow(array(
|
$shoppinglistRow = $this->Database->shopping_list()->createRow(array(
|
||||||
'product_id' => $productId->id,
|
'product_id' => $productId,
|
||||||
'amount' => $amount,
|
'amount' => $amount,
|
||||||
'shopping_list_id' => $listId
|
'shopping_list_id' => $listId
|
||||||
));
|
));
|
||||||
|
Reference in New Issue
Block a user