From 2cfd7c4bfe3586a175a4cc57708297ff8999a572 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 15 Feb 2024 17:35:32 +0000 Subject: [PATCH] Bug 34478: Cities - Incorrect op check for cud-delete_confirm On the cities administration page, 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/cities.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/cities.pl b/admin/cities.pl index 05b9d9670a..8373b9be20 100755 --- a/admin/cities.pl +++ b/admin/cities.pl @@ -83,7 +83,7 @@ if ( $op eq 'add_form' ) { } $city_name = q||; $op = 'list'; -} elsif ( $op eq 'cud-delete_confirm' ) { +} elsif ( $op eq 'delete_confirm' ) { my $city = Koha::Cities->find($cityid); $template->param( city => $city, ); } elsif ( $op eq 'cud-delete_confirmed' ) { -- 2.39.5