Bugzilla – Attachment 53189 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]
Bug 16870 - Update Koha::Patron use of the class
Bug-16870---Update-KohaPatron-use-of-the-class.patch (text/plain), 1.59 KB, created by
Kyle M Hall (khall)
on 2016-07-07 16:16:28 UTC
(
hide
)
Description:
Bug 16870 - Update Koha::Patron use of the class
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-07-07 16:16:28 UTC
Size:
1.59 KB
patch
obsolete
>From 1e4ad435fa69d246290eed290436dab7da4c4a99 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 >--- > 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.1.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