mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Some bug fixes. (#959)
* Fixes #956. Return 404 for missing objects in GenericEntityApiController.php * Fixes #936 and #943. Include Products that expire today in /stock/volatile and "Expiring soon"-sum on stockoverview * Fixes #881. Remove items of deleted shopping lists. * Fixes #875. Prevent infinite nested recipes. * Review Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
cf9bb87f6e
commit
923e027a4b
@@ -95,7 +95,7 @@ class StockService extends BaseService
|
||||
|
||||
if ($excludeExpired)
|
||||
{
|
||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime('now')), '>');
|
||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime('-1 days')), '>');
|
||||
}
|
||||
|
||||
return $currentStock;
|
||||
|
Reference in New Issue
Block a user