Bug 34478: Manual fix - duplicate_orders (cud-select)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
576f0c29b2
commit
1f081b86b6
2 changed files with 4 additions and 5 deletions
|
@ -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" ) {
|
||||
|
|
|
@ -54,8 +54,7 @@
|
|||
<h1>Duplicate existing orders</h1>
|
||||
|
||||
[% IF op == 'search' || op == 'select' %]
|
||||
<form action="/cgi-bin/koha/acqui/duplicate_orders.pl" method="post">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<form action="/cgi-bin/koha/acqui/duplicate_orders.pl" method="get">
|
||||
<fieldset class="rows">
|
||||
<legend>
|
||||
[% IF op == 'search' %]
|
||||
|
@ -68,7 +67,7 @@
|
|||
</legend>
|
||||
<div id="orders_filters">
|
||||
[% INCLUDE 'filter-orders.inc' %]
|
||||
<input type="hidden" name="op" value="cud-select" />
|
||||
<input type="hidden" name="op" value="select" />
|
||||
<input type="hidden" name="basketno" value="[% basket.basketno | html %]" />
|
||||
|
||||
<input type="hidden" name="ordernumbers" value="[% ordernumbers.join(',') | html %]" />
|
||||
|
|
Loading…
Reference in a new issue