From ea84926d84f7bf7193ffd81d9e596ca18499c5cc 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 Signed-off-by: Lucas Gass (cherry picked from commit ea123185b90da00faa7ddd3f26e8d5b3ae1db256) Signed-off-by: Paul Derscheid --- 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 047f603cb4..d913286712 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){