From 8193d3592d815066943cba5807ef6d80c0f7d366 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 Signed-off-by: Nick Clemens --- Koha/Account.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Koha/Account.pm b/Koha/Account.pm index ca7a8072d1..6f41b3bbd2 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -535,13 +535,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.39.5