From e84ef47018e5682764b64073c43b6f95f37c5b31 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 96ac665844..48681b81ea 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.39.5