Bugzilla – Attachment 73581 Details for
Bug 19935
Move C4::Members::GetPendingIssues to the Koha namespace
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19935: Use ->checkouts when ->pending_checkouts->count was used
Bug-19935-Use--checkouts-when--pendingcheckouts-co.patch (text/plain), 1.37 KB, created by
Josef Moravec
on 2018-04-03 13:14:00 UTC
(
hide
)
Description:
Bug 19935: Use ->checkouts when ->pending_checkouts->count was used
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-04-03 13:14:00 UTC
Size:
1.37 KB
patch
obsolete
>From c9ed58c7eeb062ceea3257577cdab3dcc41c5575 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 3 Apr 2018 09:49:54 -0300 >Subject: [PATCH] Bug 19935: Use ->checkouts when ->pending_checkouts->count > was used > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Patron/Discharge.pm | 2 +- > members/deletemem.pl | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Patron/Discharge.pm b/Koha/Patron/Discharge.pm >index 2f3c4e4..0364214 100644 >--- a/Koha/Patron/Discharge.pm >+++ b/Koha/Patron/Discharge.pm >@@ -36,7 +36,7 @@ sub can_be_discharged { > my $patron = Koha::Patrons->find( $params->{borrowernumber} ); > return unless $patron; > >- my $has_pending_checkouts = $patron->pending_checkouts->count; >+ my $has_pending_checkouts = $patron->checkouts->count; > return $has_pending_checkouts ? 0 : 1; > } > >diff --git a/members/deletemem.pl b/members/deletemem.pl >index 8e89acd..1da27fc 100755 >--- a/members/deletemem.pl >+++ b/members/deletemem.pl >@@ -75,7 +75,7 @@ if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preferen > } > > my $charges = $patron->account->non_issues_charges; >-my $countissues = $patron->pending_checkouts->count; >+my $countissues = $patron->checkouts->count; > my $userenv = C4::Context->userenv; > > if ($patron->category->category_type eq "S") { >-- >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 19935
:
70351
|
70352
|
70353
|
70354
|
70355
|
70356
|
70357
|
70358
|
70359
|
70360
|
70361
|
71807
|
71808
|
71809
|
71810
|
71811
|
71812
|
71813
|
72752
|
72753
|
72754
|
72755
|
72756
|
72757
|
72758
|
72759
|
72760
|
72761
|
72762
|
73557
|
73558
|
73559
|
73560
|
73561
|
73562
|
73563
|
73564
|
73565
|
73566
|
73567
|
73568
|
73569
|
73570
|
73571
|
73572
|
73573
|
73574
|
73575
|
73576
|
73577
|
73578
|
73579
|
73580
| 73581 |
73582