Bug 21694: Keep the context
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 26 Oct 2018 18:08:51 +0000 (15:08 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 31 Oct 2018 13:51:07 +0000 (13:51 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm

index ca7a807..6f41b3b 100644 (file)
@@ -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;