Bugzilla – Attachment 53408 Details for
Bug 16870
Koha::Issue(s) should be named Koha::Checkout(s)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 16870 - Update Koha::Patron use of the class
Bug-16870---Update-KohaPatron-use-of-the-class.patch (text/plain), 1.64 KB, created by
Srdjan Jankovic
on 2016-07-15 02:22:24 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 16870 - Update Koha::Patron use of the class
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2016-07-15 02:22:24 UTC
Size:
1.64 KB
patch
obsolete
>From 6023cf26afa0f0071ca4826fbf741972e312d370 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 7 Jul 2016 16:10:24 +0000 >Subject: [PATCH] Bug 16870 - Update Koha::Patron use of the class > >Test Plan: >1) Apply this patch >2) prove t/db_dependent/Patron/Borrower_PrevCheckout.t >3) prove t/db_dependent/Koha/Checkouts.t > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> >--- > Koha/Patron.pm | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 5ba5efc..37a1d85 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -24,7 +24,7 @@ use Carp; > > use C4::Context; > use Koha::Database; >-use Koha::Issues; >+use Koha::Checkouts; > use Koha::OldIssues; > use Koha::Patron::Categories; > use Koha::Patron::Images; >@@ -153,19 +153,19 @@ sub do_check_for_previous_checkout { > push @item_nos, $item->itemnumber; > } > >- # Create (old)issues search criteria >+ # Create (old)checkouts search criteria > my $criteria = { > borrowernumber => $self->borrowernumber, > itemnumber => \@item_nos, > }; > >- # Check current issues table >- my $issues = Koha::Issues->search($criteria); >- return 1 if $issues->count; # 0 || N >+ # Check current checkouts table >+ my $checkouts = Koha::Checkouts->search($criteria); >+ return 1 if $checkouts->count; # 0 || N > >- # Check old issues table >- my $old_issues = Koha::OldIssues->search($criteria); >- return $old_issues->count; # 0 || N >+ # Check old checkouts table >+ my $old_checkouts = Koha::OldIssues->search($criteria); >+ return $old_checkouts->count; # 0 || N > } > > =head3 type >-- >2.7.4
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 16870
:
53188
|
53189
|
53373
|
53374
|
53375
|
53376
|
53407
| 53408