From 8538886cb91f977d6109bfd035d4d8348ad108dc 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 Signed-off-by: Jonathan Druart --- 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.39.5