Bug 32894: Make ->sharee looks like others

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2023-05-09 11:02:30 +02:00 committed by Tomas Cohen Arazi
parent 9ad94cf3e0
commit e84ef47018
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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