From 5303dc495925425139440bd0fb8c507ee402f771 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 10 Nov 2023 09:30:02 +0000 Subject: [PATCH] Bug 35193: Reload page on notice edit when switching Koha module Test plan, k-t-d: 1) Edit an existing notice, e.g.: /cgi-bin/koha/tools/letter.pl?op=add_form&branchcode=&module=report&code=ACCOUNTS_SUMMARY 2) Change the Koha module dropdown value 3) Notice the page doesnt refresh 4) Apply patch. Repeat. Notice it refreshes now. --- 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 8a1894a1f7..751098cc5c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/letter.js +++ b/koha-tmpl/intranet-tmpl/prog/js/letter.js @@ -75,7 +75,7 @@ $(document).ready(function() { }); } - $("#newmodule").on("change",function(){ + $("#newmodule, #module").on("change",function(){ var branchcode; if( $("#branch").val() === ""){ branchcode = "*"; -- 2.30.2