mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Fixed recipe ingredient costs/calories calculation when having different QUs and when only_check_single_unit_in_stock is set (fixes #2529) Added a new column "Product picture" on /products (closes #2640) Fixed partly opening stock entries stock_id handling (fixes #2391)
12 lines
346 B
PHP
12 lines
346 B
PHP
<?php
|
|
|
|
// This is executed inside DatabaseMigrationService class/context
|
|
|
|
$localizationService = $this->getLocalizationService();
|
|
$db = $this->getDatabaseService()->GetDbConnection();
|
|
|
|
$defaultShoppingList = $db->shopping_lists()->where('id = 1')->fetch();
|
|
$defaultShoppingList->update([
|
|
'name' => $localizationService->__t('Shopping list')
|
|
]);
|