From 906059fd03b58077cb549fd504f411c2ecfdef53 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Feb 2024 16:19:56 +0000 Subject: [PATCH] Bug 34478: Frameworks - first subfield delete button has incorrect op value From the list of a tag's subfields (e.g. /cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=245&frameworkcode=) the delete button is a GET operation to a second form for confirmation. This script should be checking for op=delete_confirm, not cud-delete-confirm. Signed-off-by: Jonathan Druart --- admin/marc_subfields_structure.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/marc_subfields_structure.pl b/admin/marc_subfields_structure.pl index 5317da5bb4..260e3ad900 100755 --- a/admin/marc_subfields_structure.pl +++ b/admin/marc_subfields_structure.pl @@ -312,7 +312,7 @@ elsif ( $op eq 'cud-add_validate' ) { ################## DELETE_CONFIRM ################################## # called by default form, used to confirm deletion of data in DB } -elsif ( $op eq 'cud-delete_confirm' ) { +elsif ( $op eq 'delete_confirm' ) { my $mss = Koha::MarcSubfieldStructures->find( { tagfield => $tagfield,