Bug 34478: Manual fix - Batch rm items (course reserves)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
c79a31b7a3
commit
e9e8d5ead8
2 changed files with 5 additions and 5 deletions
|
@ -31,8 +31,8 @@ use Koha::Items;
|
|||
|
||||
my $cgi = CGI->new;
|
||||
|
||||
my $action = $cgi->param('action') || q{};
|
||||
my $barcodes = $cgi->param('barcodes') || q{};
|
||||
my $op = $cgi->param('op') || q{};
|
||||
my $barcodes = $cgi->param('barcodes') || q{};
|
||||
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
|
@ -43,11 +43,11 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
if ( !$action ) {
|
||||
if ( !$op ) {
|
||||
$template->param( action => 'display_form' );
|
||||
}
|
||||
|
||||
elsif ( $action eq 'batch_rm' ) {
|
||||
elsif ( $op eq 'cud-batch_rm' ) {
|
||||
my @barcodes = uniq( split (/\s\n/, $barcodes ) );
|
||||
my @invalid_barcodes;
|
||||
my @item_and_count;
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
[% IF action == 'display_form' %]
|
||||
<form method="post" action="/cgi-bin/koha/course_reserves/batch_rm_items.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<input type="hidden" name="action" value="batch_rm" />
|
||||
<input type="hidden" name="op" value="cud-batch_rm" />
|
||||
<fieldset class="rows">
|
||||
<legend>Remove items: scan barcodes</legend>
|
||||
<ol>
|
||||
|
|
Loading…
Reference in a new issue