From 0df674ba72f9a6e810d5639c49907371d019ab5c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 6 Feb 2024 12:07:08 +0100 Subject: [PATCH] Bug 34478: Fix shelf transfer Signed-off-by: Jonathan Druart --- .../prog/en/modules/virtualshelves/tables/shelves_results.tt | 2 +- virtualshelves/shelves.pl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt index a25ee52259..38efef79ce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/tables/shelves_results.tt @@ -58,7 +58,7 @@ [%~ action_block = action_block _ '' ~%] [%~ END ~%] [%~ IF public AND allow_transfer ~%] - [%~ action_block = action_block _ '
' ~%] + [%~ action_block = action_block _ ' ' ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] [%~ action_block = action_block _ '' ~%] diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl index c48325cc6b..2be580b4d0 100755 --- a/virtualshelves/shelves.pl +++ b/virtualshelves/shelves.pl @@ -242,6 +242,9 @@ if ( $op eq 'add_form' ) { push @messages, { type => 'alert', code => 'does_not_exist' }; } $op = $referer; +} elsif ( $op eq 'transfer' ) { + $shelfnumber = $query->param('shelfnumber'); + $shelf = Koha::Virtualshelves->find($shelfnumber) if $shelfnumber; } elsif ( $op eq 'cud-transfer' ) { $shelfnumber = $query->param('shelfnumber'); $shelf = Koha::Virtualshelves->find($shelfnumber) if $shelfnumber; -- 2.39.5