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:
parent
325b3e7c10
commit
2cfd7c4bfe
1 changed files with 1 additions and 1 deletions
|
@ -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' ) {
|
||||
|
|
Loading…
Reference in a new issue