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 <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-03-15 13:51:02 +01:00 committed by Katrin Fischer
parent 1ea4a11c2a
commit a36e8900d7
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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);