Bug 40207

Summary: Bad redirection after Batch item deletion
Product: Koha Reporter: Koha collecto <koha>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: koha, m.de.rooy
Version: 24.05   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Example of the bug

Description Koha collecto 2025-06-20 15:56:55 UTC
Created attachment 183398 [details]
Example of the bug

After deleting a batch of items, I clicked on the "Batch item deletion" button, at the top of the page, and am directed to the "Batch item MODIFICATION" page (Example URL : https://dev.koha.ca/cgi-bin/koha/tools/batchMod.pl). I should instead be redirected to the "Batch item DELETION" page (Example URL : https://dev.koha.ca/cgi-bin/koha/tools/batchMod.pl?del=1).

The redirect URL should be changed for : https://dev.koha.ca/cgi-bin/koha/tools/batchMod.pl?del=1

See the attached video for the example.

Tested in version 24.05 and 25.05.

Test plan : 
1. Go to the cataloging module.
2. Click on "Batch item deletion" button
3. Copy a barcode into the "Barcode list" box.
4. Click on "Continue" button
5. Click on "Delete selected items" button
6. Click on "Batch item deletion" button at the top of the page
7. Notice that you have been redirected to "Batch item modification" and not "Batch item deletion".



I also tested the button for "Batch RECORD deletion" and it redirects us to the correct page : "Batch record deletion" (https://dev-intranet.koha.collecto.ca/cgi-bin/koha/tools/batch_delete_records.pl).
Comment 1 Koha collecto 2025-06-20 16:03:57 UTC
Correction : Button in breadcrumbs.