From 29ef9b7311f3957aa4cb5405add8dc6ac8ed4188 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 May 2023 11:02:30 +0200 Subject: [PATCH] Bug 32894: Make ->sharee looks like others Signed-off-by: Nick Clemens --- Koha/Virtualshelfshare.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/Virtualshelfshare.pm b/Koha/Virtualshelfshare.pm index 96ac6658442..48681b81ea2 100644 --- a/Koha/Virtualshelfshare.pm +++ b/Koha/Virtualshelfshare.pm @@ -89,7 +89,8 @@ sub has_expired { sub sharee { my $self = shift; - return Koha::Patron->_new_from_dbic( $self->_result->borrowernumber ); + my $rs = $self->_result->borrowernumber; + return Koha::Patron->_new_from_dbic( $rs ); } =head3 _type -- 2.25.1