mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Do "auto add missing products to shopping list" also on product open actions (fixes #1873)
This commit is contained in:
parent
845e69fb96
commit
8ab511361a
|
|
@ -1075,6 +1075,11 @@ class StockService extends BaseService
|
|||
}
|
||||
}
|
||||
|
||||
if (boolval($this->getUsersService()->GetUserSetting(GROCY_USER_ID, 'shopping_list_auto_add_below_min_stock_amount')))
|
||||
{
|
||||
$this->AddMissingProductsToShoppingList(intval($this->getUsersService()->GetUserSetting(GROCY_USER_ID, 'shopping_list_auto_add_below_min_stock_amount_list_id')));
|
||||
}
|
||||
|
||||
return $transactionId;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user