From 09bfb81c5e6b89db344a3b67dee3528039fea0be Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Feb 2024 16:35:39 +0000 Subject: [PATCH] Bug 34478: Authority frameworks - first subfield delete button has incorrect op value From the list of a tag's subfields (e.g. /cgi-bin/koha/admin/auth_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/auth_subfields_structure.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/auth_subfields_structure.pl b/admin/auth_subfields_structure.pl index 9433b0aa0d..24597b3cc9 100755 --- a/admin/auth_subfields_structure.pl +++ b/admin/auth_subfields_structure.pl @@ -227,7 +227,7 @@ if ($op eq 'add_form') { ################## 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 $ass = Koha::Authority::Subfields->find( { authtypecode => $authtypecode, -- 2.39.5