From b091b70724f26a5d84a43772b52b81ceaf24d280 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Jan 2024 10:00:41 +0100 Subject: [PATCH] Bug 34478: Rename action with op - acqui/cancelorder Signed-off-by: Jonathan Druart --- acqui/cancelorder.pl | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acqui/cancelorder.pl b/acqui/cancelorder.pl index 50165c5911..e026a6c4e1 100755 --- a/acqui/cancelorder.pl +++ b/acqui/cancelorder.pl @@ -45,7 +45,7 @@ my ($template, $loggedinuser, $cookie, $flags) = get_template_and_user( { flagsrequired => { 'acquisition' => 'order_manage' }, } ); -my $action = $input->param('action'); +my $op = $input->param('op') || q{}; my $ordernumber = $input->param('ordernumber'); my $biblionumber = $input->param('biblionumber'); my $basketno = $input->param('basketno'); @@ -53,7 +53,7 @@ my $basket = Koha::Acquisition::Baskets->find({ basketno => $basketno }, { prefe my $referrer = $input->param('referrer') || $input->referer; my $delete_biblio = $input->param('del_biblio') ? 1 : 0; -if( $action and $action eq "confirmcancel" ) { +if( $op eq "confirmcancel" ) { my $reason = $input->param('reason'); my $order = Koha::Acquisition::Orders->find($ordernumber); my @messages; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt index 30f8721053..d296a2edc7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/cancelorder.tt @@ -49,7 +49,7 @@

[% PROCESS 'av-build-dropbox.inc' name="reason", category="ORDER_CANCELLATION_REASON" default="0" %]

- + -- 2.39.5