From 0aacb33994a85b309b54db59d2ef1fd9b148dbb3 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 (cherry picked from commit e84ef47018e5682764b64073c43b6f95f37c5b31) Signed-off-by: Martin Renvoize (cherry picked from commit 7b20f2fb4f574e9e21cc6b7bb847988d2e08687b) Signed-off-by: Matt Blenkinsop --- 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