From b5524e0927e46c4fe5ca536030bec75e66eda898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9raud=20Frappier?= Date: Wed, 16 Nov 2022 16:54:41 -0500 Subject: [PATCH] Bug 32237: Fix using a list as base for batch record deletion When a list was used to select records for batch deletion, the record IDs were no longer found. To test: 1. Go to Lists in the intranet. 2. Add a list by clicking on "New list". Choose a random name for it and select private or public and save. 3.Add one or more items into it and save. 4.Go back to the main page and select "Cataloging". 5.Go to "Batch record deletion". 6.In "upload a file" select "Select a list of records" and choose a list and keep the Bibliographic on. 7.Select continue and see that the list of records is not shown. Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt index 252265f5c9..3a0555329b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt @@ -351,7 +351,7 @@ }); $("#record_ids_selection").on("submit", function(e){ - var tab = $(this).find('.ui-tabs-active:first a').attr('href'); + var tab = $(this).find('#batch_del_form:active:first a').attr('href'); if ( tab == '#uploadfile_tab' ) { $("#shelf_number").empty(''); $("#recordnumber_list").val(''); -- 2.30.2