From fcb3dcfbb248b23b2e5f7de54ed728b035384724 Mon Sep 17 00:00:00 2001 From: Mikhail Golovanov Date: Sun, 14 Jun 2020 19:19:37 +0300 Subject: [PATCH] fix amount in recipes ingridients --- public/viewjs/recipeposform.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/viewjs/recipeposform.js b/public/viewjs/recipeposform.js index 55e559ab..1931a1a9 100644 --- a/public/viewjs/recipeposform.js +++ b/public/viewjs/recipeposform.js @@ -6,6 +6,7 @@ $('#save-recipe-pos-button').on('click', function (e) var jsonData = $('#recipe-pos-form').serializeJSON({ checkboxUncheckedValue: "0" }); jsonData.recipe_id = Grocy.EditObjectParentId; + jsonData.amount = jsonData.amount.replace(/\s/g, ''); delete jsonData.display_amount; Grocy.FrontendHelpers.BeginUiBusy("recipe-pos-form");