From 16eec9f2fd8e00ba4b99e62c7187e882a157dde6 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 --- 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