diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 83ec825859..5d5169109d 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -57,6 +57,7 @@ Koha::Illrequest->check_url_param_deprecation($params); my $op = $params->{op} // $params->{method} // 'illlist'; $op = 'cud-create' if $op eq 'create'; $op = 'cud-cancel' if $op eq 'cancel'; +$op = 'cud-delete' if $op eq 'delete'; my ( $template, $patronnumber, $cookie ) = get_template_and_user( { template_name => 'ill/ill-requests.tt', @@ -275,7 +276,7 @@ if ( $backends_available ) { # Currently still needs to be implemented. redirect_to_list(); - } elsif ( $op eq 'cud-delete_confirm') { + } elsif ( $op eq 'delete_confirm') { my $request = Koha::Illrequests->find($params->{illrequest_id}); $template->param( diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index a98d9f28bd..3ca21e76d0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -505,7 +505,7 @@

Are you sure you wish to delete this request?

[% INCLUDE 'csrf-token.inc' %] - +