Bugzilla – Attachment 58430 Details for
Bug 17588
Move GetMemberIssuesAndFines to Koha::Patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17588: ->get_issues has been replaced with ->checkouts
Bug-17588--getissues-has-been-replaced-with--check.patch (text/plain), 2.69 KB, created by
Jonathan Druart
on 2016-12-27 08:05:43 UTC
(
hide
)
Description:
Bug 17588: ->get_issues has been replaced with ->checkouts
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-12-27 08:05:43 UTC
Size:
2.69 KB
patch
obsolete
>From 2ec7b11d7b8d9625255af5efccc45115ad715748 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 Dec 2016 09:05:18 +0100 >Subject: [PATCH] Bug 17588: ->get_issues has been replaced with ->checkouts > >--- > 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 64f75a3..5b5a9ac 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 10e695e..8cbd669 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 36d6f7a..dd1e141 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.9.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17588
:
57339
|
57992
|
57993
|
58430
|
58759
|
58760
|
58761
|
59154
|
59155
|
59156