From 0e620aa39eb209f1c4db32a5d801611d08fb2866 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 3 Apr 2018 09:52:57 -0300
Subject: [PATCH] Bug 19935: (follow-up) Replace GetPendingIssues -
 opac-user.pl

Syntax issue, can be squashed on pushing.
---
 opac/opac-user.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opac/opac-user.pl b/opac/opac-user.pl
index 880ade824a..ab3d8a786f 100755
--- a/opac/opac-user.pl
+++ b/opac/opac-user.pl
@@ -184,7 +184,7 @@ my $overdues_count = 0;
 my @overdues;
 my @issuedat;
 my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } };
-my $pending_checkouts = $patron->pending_checkouts({}, { order_by => [ { -desc => 'date_due' }, { -asc => 'issue_id' } ] });
+my $pending_checkouts = $patron->pending_checkouts->search({}, { order_by => [ { -desc => 'date_due' }, { -asc => 'issue_id' } ] });
 if ( $pending_checkouts->count ) { # Useless test
     while ( my $c = $pending_checkouts->next ) {
         my $issue = $c->unblessed_all_relateds;
-- 
2.11.0