From 3f5d27c6e285a3ec395c8754183141c612f3c9f6 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 --- 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.34.1