From e8180c23277b3108843a953679acf2a48e8eb404 Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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. Signed-off-by: Josef Moravec --- 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 880ade8..ab3d8a7 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.1.4