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 <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2024-02-15 16:19:56 +00:00 committed by Jonathan Druart
parent 8e6b95a936
commit 906059fd03
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -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,