diff --git a/controllers/RecipesController.php b/controllers/RecipesController.php index 5b1f0b72..75f3919f 100644 --- a/controllers/RecipesController.php +++ b/controllers/RecipesController.php @@ -31,6 +31,7 @@ class RecipesController extends BaseController { $selectedRecipe = $recipe; $selectedRecipePositions = $this->Database->recipes_pos()->where('recipe_id', $recipe->id); + break; } } diff --git a/localization/de.php b/localization/de.php index 5e84273f..d4279b5b 100644 --- a/localization/de.php +++ b/localization/de.php @@ -225,5 +225,6 @@ return array( 'English' => 'Englisch', 'German' => 'Deutsch', 'Italian' => 'Italienisch', - 'Demo in different language' => 'Demo in anderer Sprache' + 'Demo in different language' => 'Demo in anderer Sprache', + 'This is the note content of the recipe ingredient' => 'Dies ist der Inhalt der Notiz der Zutat' ); diff --git a/services/DemoDataGeneratorService.php b/services/DemoDataGeneratorService.php index 5a72f80c..d2644bec 100644 --- a/services/DemoDataGeneratorService.php +++ b/services/DemoDataGeneratorService.php @@ -60,11 +60,11 @@ class DemoDataGeneratorService extends BaseService INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (1, 16, 1); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (1, 17, 1); - INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (1, 18, 1); + INSERT INTO recipes_pos (recipe_id, product_id, amount, note) VALUES (1, 18, 1, '{$localizationService->Localize('This is the note content of the recipe ingredient')}'); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (1, 10, 1); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (2, 6, 1); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (2, 10, 1); - INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (2, 17, 1); + INSERT INTO recipes_pos (recipe_id, product_id, amount, note) VALUES (2, 17, 1, '{$localizationService->Localize('This is the note content of the recipe ingredient')}'); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (2, 20, 1); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (3, 10, 1); INSERT INTO recipes_pos (recipe_id, product_id, amount) VALUES (3, 11, 1); diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php index fc703dcf..7aa337ba 100644 --- a/views/layout/default.blade.php +++ b/views/layout/default.blade.php @@ -192,7 +192,7 @@