mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fix product card chart rendering error when there is no shopping location (references #658)
This commit is contained in:
@@ -178,7 +178,7 @@ class StockService extends BaseService
|
||||
$returnData[] = array(
|
||||
'date' => $row->purchased_date,
|
||||
'price' => $row->price,
|
||||
'shopping_location' => FindObjectInArrayByPropertyValue($shoppingLocations, 'id', $row->shopping_location_id)->name,
|
||||
'shopping_location' => FindObjectInArrayByPropertyValue($shoppingLocations, 'id', $row->shopping_location_id),
|
||||
);
|
||||
}
|
||||
return $returnData;
|
||||
|
Reference in New Issue
Block a user