mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 15:49:25 +01: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:
parent
d8be254ff3
commit
f444d3e095
|
|
@ -592,7 +592,7 @@ class StockService extends BaseService
|
|||
else // Insert
|
||||
{
|
||||
$shoppinglistRow = $this->Database->shopping_list()->createRow(array(
|
||||
'product_id' => $productId->id,
|
||||
'product_id' => $productId,
|
||||
'amount' => $amount,
|
||||
'shopping_list_id' => $listId
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user