From 4e663c5e6471c7866b943f05e33f1c715e851c36 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Mon, 24 Jun 2024 14:54:05 +0000 Subject: [PATCH] Bug 37059: Fix insert button in notices and slips This patch fixes the insert button in notices and slips. The container id needed to be appened with '_panel' To Test: 1. Edit any notice or slip and try to use the insert button 2. Nothing happens 3. Apply patch and refresh the browser 4. Edit any notice or slip and use the insert button 5. Confirm the parameters are inserted into the tempalte as expected. Signed-off-by: Eric Garcia Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/letter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/letter.js b/koha-tmpl/intranet-tmpl/prog/js/letter.js index 44524c0452..3c825f961d 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/letter.js +++ b/koha-tmpl/intranet-tmpl/prog/js/letter.js @@ -235,7 +235,7 @@ $(document).ready(function() { }); function insertValueQuery(containerid) { - var fieldset = $("#" + containerid); + var fieldset = $("#" + containerid + "_panel"); var myQuery = $(fieldset).find('textarea[name="content"]'); var myListBox = $(fieldset).find('select[name="SQLfieldname"]'); -- 2.39.2