From 941264731ed56c887b5e478917ac964cc4e323dc Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 29 Jun 2020 22:03:43 +0200 Subject: [PATCH] fixed ingredient adding attributes --- .../templates/forms/edit_internal_recipe.html | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cookbook/templates/forms/edit_internal_recipe.html b/cookbook/templates/forms/edit_internal_recipe.html index 5787c87e0..febf10467 100644 --- a/cookbook/templates/forms/edit_internal_recipe.html +++ b/cookbook/templates/forms/edit_internal_recipe.html @@ -110,7 +110,8 @@
- +
@@ -157,7 +158,8 @@ @search-change="searchFoods">
-
+
@@ -192,12 +194,14 @@
@@ -355,13 +359,15 @@ }, addIngredient: function (step) { //TODO see if default can be generated from options request step.ingredients.push({ - 'food': undefined, + 'food': null, 'unit': { 'name': '{{request.user.userpreference.default_unit}}' }, 'amount': 0, 'note': '', 'order': 0, + 'is_header': false, + 'no_amount': false }) this.sortIngredients(step) },