From c79a31b7a38107d5ea6eb7fee5ef7520e6613bc7 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Jan 2024 17:05:47 -0300 Subject: [PATCH] Bug 34478: Manual fix - Batch add items (course reserves) Signed-off-by: Jonathan Druart --- course_reserves/batch_add_items.pl | 10 +++++----- .../prog/en/modules/course_reserves/batch_add_items.tt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/course_reserves/batch_add_items.pl b/course_reserves/batch_add_items.pl index 15394be470..8f755eb5ab 100755 --- a/course_reserves/batch_add_items.pl +++ b/course_reserves/batch_add_items.pl @@ -32,9 +32,9 @@ use Koha::Items; my $cgi = CGI->new; -my $action = $cgi->param('action') || q{}; -my $course_id = $cgi->param('course_id') || q{}; -my $barcodes = $cgi->param('barcodes') || q{}; +my $op = $cgi->param('op') || q{}; +my $course_id = $cgi->param('course_id') || q{}; +my $barcodes = $cgi->param('barcodes') || q{}; my $biblionumbers = $cgi->param('biblionumbers') || q{}; my $itype = $cgi->param('itype'); @@ -63,10 +63,10 @@ my $course = GetCourse($course_id); if ( $course_id && $course ) { $template->param( course => $course ); - if ( !$action ) { + if ( !$op ) { $template->param( action => 'display_form' ); } - elsif ( $action eq 'cud-add' ) { + elsif ( $op eq 'cud-add' ) { my @barcodes = uniq( split( /\s\n/, $barcodes ) ); my @biblionumbers = uniq( split( /\s\n/, $biblionumbers ) ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt index b4821f9ab5..d278b001f2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt @@ -47,7 +47,7 @@
[% INCLUDE 'csrf-token.inc' %] - +
Add items: scan barcodes -- 2.39.5