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:
Marc Ole Bulling
2019-09-24 15:50:35 +02:00
committed by Bernd Bestel
parent d8be254ff3
commit f444d3e095

View File

@@ -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
));