From 5c25dd0eecdbe156107448a2f0d8421476b21f11 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 1 Feb 2024 21:18:25 +0000 Subject: [PATCH] Bug 34478: Manual fix - add op - rotating_collections/addItems Signed-off-by: Jonathan Druart --- .../prog/en/modules/rotating_collections/addItems.tt | 2 +- rotating_collections/addItems.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt index c3d0b043f1..593c08ec0c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt @@ -108,7 +108,7 @@
- +
diff --git a/rotating_collections/addItems.pl b/rotating_collections/addItems.pl index 6cde9aebce..1872578095 100755 --- a/rotating_collections/addItems.pl +++ b/rotating_collections/addItems.pl @@ -28,7 +28,7 @@ use Koha::Items; use CGI qw ( -utf8 ); my $query = CGI->new; - +my $op = $query->param('op') || q{}; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "rotating_collections/addItems.tt", @@ -38,8 +38,8 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -if ( defined $query->param('action') and - $query->param('action') eq 'addItem' ) { +if ( defined $op and + $op eq 'cud-add' ) { ## Add the given item to the collection my $colId = $query->param('colId'); my $barcode = $query->param('barcode'); -- 2.39.5