From 6f693a2420c92556dff2acb05eb0be173ad27c77 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 27 Oct 2023 14:02:27 +0100 Subject: [PATCH] Bug 35074: Use patron relationship alias This patch updates the existing Koha::Account::Line->patron accessor to use the new aliased 'patron' relation in the schema class Signed-off-by: Lucas Gass Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/Account/Line.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 4cd914d9b7..7496f17677 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -52,7 +52,7 @@ Return the patron linked to this account line sub patron { my ( $self ) = @_; - my $rs = $self->_result->borrowernumber; + my $rs = $self->_result->patron; return unless $rs; return Koha::Patron->_new_from_dbic( $rs ); } -- 2.39.5