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;