Bug 33223: Fix sendshelf

Two new occurences of first_valid crept in, this patch corrects those to
also use notice_

Signed-off-by: David Cook <dcook@prosentient.com.au>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-05-10 18:02:35 +01:00 committed by Tomas Cohen Arazi
parent f733910f26
commit 72a2da381f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ if ( $shelf and $shelf->can_be_viewed($borrowernumber) ) {
my $comment = $query->param('comment');
my $patron = Koha::Patrons->find($borrowernumber);
my $user_email = $patron->first_valid_email_address;
my $user_email = $patron->notice_email_address;
my $shelf = Koha::Virtualshelves->find($shelfid);
my $contents = $shelf->get_contents;
my $iso2709;

View file

@ -61,7 +61,7 @@ if ($to_address) {
my $comment = $query->param('comment');
my $patron = Koha::Patrons->find($borrowernumber);
my $user_email = $patron->first_valid_email_address;
my $user_email = $patron->notice_email_address;
my $contents = $shelf->get_contents;
my @biblionumbers;
my $iso2709;