Bug 29844: Fix ->search occurrences
[srvgit] / members / boraccount.pl
index 303fdb9..320d373 100755 (executable)
@@ -177,7 +177,7 @@ my $total = $patron->account->balance;
 my @accountlines = Koha::Account::Lines->search(
     { borrowernumber => $patron->borrowernumber },
     { order_by       => { -desc => 'accountlines_id' } }
-);
+)->as_list;
 
 my $totalcredit;
 if($total <= 0){