From a36e8900d70e3ebff6f4f1bcefe059d094228bd8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Mar 2024 13:51:02 +0100 Subject: [PATCH] Bug 36326: Fix batch item mod/del access from biblio detail page Allow both $op eq "show" and "cud-show". We need to keep the POST when we upload a file, but we can simply allow GET with "show". Test plan: Go to the biblio detail page, select an item and test both tools via the links "Delete selected items" and "Modify selected items" Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Katrin Fischer --- tools/batchMod.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index f53c99d54e..1b43231857 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -206,7 +206,7 @@ $template->param( # build screen with existing items. and "new" one #------------------------------------------------------------------------------- -if ($op eq "cud-show"){ +if ($op eq "cud-show" || $op eq "show"){ my $filefh = $input->upload('uploadfile'); my $filecontent = $input->param('filecontent'); my ( @notfoundbarcodes, @notfounditemnumbers); -- 2.39.5