mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Fixed API call AddProductToShoppingList
$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
2840e892ec
|
|
@ -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