From b09f3eee5efade87ccec70fbf92baf130f46d615 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 --- 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.11.0