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 <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Owen Leonard 2024-02-15 17:35:32 +00:00 committed by Jonathan Druart
parent 325b3e7c10
commit 2cfd7c4bfe
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0

View file

@ -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' ) {