mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Optimized tooltip hide handling
This commit is contained in:
@@ -137,10 +137,11 @@ class StockController extends BaseController
|
||||
public function Overview(Request $request, Response $response, array $args)
|
||||
{
|
||||
$usersService = $this->getUsersService();
|
||||
$nextXDays = $usersService->GetUserSettings(GROCY_USER_ID)['stock_due_soon_days'];
|
||||
$userSettings = $usersService->GetUserSettings(GROCY_USER_ID);
|
||||
$nextXDays = $userSettings['stock_due_soon_days'];
|
||||
|
||||
$where = 'is_in_stock_or_below_min_stock = 1';
|
||||
if (boolval($usersService->GetUserSettings(GROCY_USER_ID)['stock_overview_show_all_out_of_stock_products']))
|
||||
if (boolval($userSettings['stock_overview_show_all_out_of_stock_products']))
|
||||
{
|
||||
$where = '1=1';
|
||||
}
|
||||
|
Reference in New Issue
Block a user