From 076ae63bd9d466e0ec4b1b3b4305c8bfd8309dda Mon Sep 17 00:00:00 2001 From: =?utf8?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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit dc08b5337656acd0d845486d2b038ef012d531cb) Signed-off-by: Lucas Gass --- .../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 85c618b716..d6fc13b2cb 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 @@ -349,7 +349,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.39.5