From e9e8d5ead8b4f90b773d44fe44377f045c54cf3c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Jan 2024 17:13:10 -0300 Subject: [PATCH] Bug 34478: Manual fix - Batch rm items (course reserves) Signed-off-by: Jonathan Druart --- course_reserves/batch_rm_items.pl | 8 ++++---- .../prog/en/modules/course_reserves/batch_rm_items.tt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/course_reserves/batch_rm_items.pl b/course_reserves/batch_rm_items.pl index 14d33b905d..c1b518cbb5 100755 --- a/course_reserves/batch_rm_items.pl +++ b/course_reserves/batch_rm_items.pl @@ -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; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt index 35b6b02eb0..ff1ff13720 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt @@ -35,7 +35,7 @@ [% IF action == 'display_form' %]
[% INCLUDE 'csrf-token.inc' %] - +
Remove items: scan barcodes
    -- 2.39.5