From 10e761e4627590af3ec18a2e3a054141569a4217 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Oct 2025 08:55:04 +0200 Subject: [PATCH] Bug 41065: (bug 26553 follow-up) Remove JS error when submitting the form Uncaught TypeError: patron_table.$ is not a function Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 047f603cb47..d9132867129 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -569,7 +569,7 @@ $('form[name="f"]').on("submit", function(){ // Add the checkboxes to the DOM before we submit the form var form = this; - var checkboxes = patron_table.$('input:checkbox:checked').serializeArray(); + var checkboxes = $(patron_table).find('input:checkbox:checked').serializeArray(); $.each(checkboxes, function(){ let borrowernumber = this.value; if(!$(form).find('input[name="borrowernumber"][value="'+borrowernumber+'"]').length){ -- 2.39.5