From d40758f8afcd7abba4e49affe34fcdf157e6973a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Oct 2018 15:08:51 -0300 Subject: [PATCH] Bug 21694: Keep the context Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- Koha/Account.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index ff286a5027..a5b424ec35 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -520,13 +520,11 @@ Return all credits and debits for the user, outstanding or otherwise sub lines { my ($self) = @_; - my $lines = Koha::Account::Lines->search( + return Koha::Account::Lines->search( { - borrowernumber => $self->{patron_id}, + borrowernumber => $self->{patron_id}, } ); - - return $lines; } 1; -- 2.19.1