diff --git a/opac/opac-sendshelf.pl b/opac/opac-sendshelf.pl index f5600a27e3..a90d2ca5f4 100755 --- a/opac/opac-sendshelf.pl +++ b/opac/opac-sendshelf.pl @@ -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; diff --git a/virtualshelves/sendshelf.pl b/virtualshelves/sendshelf.pl index 8deeffd96f..3a2738c2d8 100755 --- a/virtualshelves/sendshelf.pl +++ b/virtualshelves/sendshelf.pl @@ -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;