From 1f081b86b6e4706a260b521b20dbcd2564634da9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Dec 2023 08:31:04 +0100 Subject: [PATCH] Bug 34478: Manual fix - duplicate_orders (cud-select) Signed-off-by: Jonathan Druart --- acqui/duplicate_orders.pl | 4 ++-- .../intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/acqui/duplicate_orders.pl b/acqui/duplicate_orders.pl index 7f36f544a9..05b6b28628 100755 --- a/acqui/duplicate_orders.pl +++ b/acqui/duplicate_orders.pl @@ -32,7 +32,7 @@ use Koha::DateUtils qw( dt_from_string ); my $input = CGI->new; my $basketno = $input->param('basketno'); -my $op = $input->param('op') || 'cud-search'; # search, select, batch_edit +my $op = $input->param('op') || 'search'; # search, select, batch_edit my ( $template, $loggedinuser, $cookie, $userflags ) = get_template_and_user( { @@ -81,7 +81,7 @@ $filters->{to_placed_on} = $to_placed_on; my ( @result_order_loop, @selected_order_loop ); my @ordernumbers = split ',', scalar $input->param('ordernumbers') || ''; -if ( $op eq 'cud-select' ) { +if ( $op eq 'select' ) { # Set filter for 'all status' if ( $filters->{orderstatus} eq "any" ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt index 159faeb75c..54bc198355 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt @@ -54,8 +54,7 @@

Duplicate existing orders

[% IF op == 'search' || op == 'select' %] -
- [% INCLUDE 'csrf-token.inc' %] +
[% IF op == 'search' %] @@ -68,7 +67,7 @@
[% INCLUDE 'filter-orders.inc' %] - + -- 2.39.5