From bcf9fdafabcddc9b50f874969bb6a84beecbacc3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 27 Dec 2016 09:05:18 +0100 Subject: [PATCH] Bug 17588: ->get_issues has been replaced with ->checkouts Signed-off-by: Josef Moravec Signed-off-by: Julian Maurice Signed-off-by: Kyle M Hall --- C4/Utils/DataTables/Members.pm | 2 +- circ/circulation.pl | 6 +++--- members/moremember.pl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm index 64f75a3be4..5b5a9ac109 100644 --- a/C4/Utils/DataTables/Members.pm +++ b/C4/Utils/DataTables/Members.pm @@ -170,7 +170,7 @@ sub search { foreach my $patron (@$patrons) { my $patron_object = Koha::Patrons->find( $patron->{borrowernumber} ); $patron->{overdues} = $patron_object->get_overdues->count; - $patron->{issues} = $patron_object->get_issues->count; + $patron->{issues} = $patron_object->checkouts->count; my $balance = $patron_object->account->balance; # FIXME Should be formatted from the template $patron->{fines} = sprintf("%.2f", $balance); diff --git a/circ/circulation.pl b/circ/circulation.pl index 10e695ea11..8cbd669705 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -267,7 +267,7 @@ if ($borrowernumber) { $patron = Koha::Patrons->find( $borrowernumber ); $borrower = GetMember( borrowernumber => $borrowernumber ); my $overdues = $patron->get_overdues; - my $issues = $patron->get_issues; + my $issues = $patron->checkouts; my $balance = $patron->account->balance; @@ -421,9 +421,9 @@ if (@$barcodes) { ); - # FIXME If the issue is confirmed, we launch another time get_issues->count, now display the issue count after issue + # FIXME If the issue is confirmed, we launch another time checkouts->count, now display the issue count after issue $patron = Koha::Patrons->find( $borrowernumber ); - $template_params->{issuecount} = $patron->get_issues->count; + $template_params->{issuecount} = $patron->checkouts->count; if ( $iteminfo ) { $iteminfo->{subtitle} = GetRecordValue('subtitle', GetMarcBiblio($iteminfo->{biblionumber}), GetFrameworkCode($iteminfo->{biblionumber})); diff --git a/members/moremember.pl b/members/moremember.pl index 17c5436765..7330cb9cff 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -120,7 +120,7 @@ my $error = $input->param('error'); $template->param( error => $error ) if ( $error ); my $patron = Koha::Patrons->find($borrowernumber); -my $issues = $patron->get_issues; +my $issues = $patron->checkouts; my $balance = $patron->account->balance; $template->param( issuecount => $issues->count, -- 2.39.5