From 38b21ff3b81fe3240e839ce579086e12f7e4375d Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 5 Feb 2024 14:49:07 -0100 Subject: [PATCH] Bug 34478: ILL INTRA: delete to cud-delete Signed-off-by: Jonathan Druart --- ill/ill-requests.pl | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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' %] - + -- 2.39.5