Bug 34478: Changes for virtualshelves/sendshelf

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2024-02-02 10:15:56 +00:00 committed by Jonathan Druart
parent 1a887538b9
commit e355fe0735
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@
<li>
<input type="hidden" name="shelfid" value="[% shelfid | html %]" />
</li></ol></fieldset>
<input type="hidden" name="op" value="cud-send" />
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">

View File

@ -39,6 +39,7 @@ use Koha::Email;
use Koha::Virtualshelves;
my $query = CGI->new;
my $op = $query->param('op') // q{};
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
{
@ -57,7 +58,7 @@ my $shelf = Koha::Virtualshelves->find($shelfid);
output_and_exit( $query, $cookie, $template, 'insufficient_permission' )
if $shelf && !$shelf->can_be_viewed($borrowernumber);
if ($to_address) {
if ( $to_address && $op eq 'cud-send' ) {
my $comment = $query->param('comment');
my $patron = Koha::Patrons->find($borrowernumber);