From 02d0121f4d1fe15fcd42e9ced112549c38e2bf9e Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 15 Jul 2021 20:11:49 +0200 Subject: [PATCH] Fixed meal plan note adding --- public/viewjs/mealplan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/viewjs/mealplan.js b/public/viewjs/mealplan.js index 021d3352..4775f915 100644 --- a/public/viewjs/mealplan.js +++ b/public/viewjs/mealplan.js @@ -530,8 +530,8 @@ $('#save-add-note-button').on('click', function(e) var jsonData = $('#add-note-form').serializeJSON(); jsonData.day = $("#day").val(); - jsonData.section_id = formData.section_id_note; - delete formData.section_id_note; + jsonData.section_id = jsonData.section_id_note; + delete jsonData.section_id_note; if (Grocy.IsMealPlanEntryEditAction) {