Bugzilla – Attachment 156518 Details for
Bug 16260
Have AllowHoldsOnPatronsPossessions check for multiple holds allowed on a record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16260: Remove CheckIfIssuedToPatron
Bug-16260-Remove-CheckIfIssuedToPatron.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2023-10-04 08:48:27 UTC
(
hide
)
Description:
Bug 16260: Remove CheckIfIssuedToPatron
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-04 08:48:27 UTC
Size:
1.36 KB
patch
obsolete
>From 088b193cee68036d4b46ccd74ad907d225be919c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Oct 2023 10:44:57 +0200 >Subject: [PATCH] Bug 16260: Remove CheckIfIssuedToPatron > >--- > C4/Circulation.pm | 24 ------------------------ > 1 file changed, 24 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 4c8b51e3c73..af649a49983 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -96,7 +96,6 @@ BEGIN { > GetBranchItemRule > GetBiblioIssues > GetUpcomingDueIssues >- CheckIfIssuedToPatron > IsItemIssued > GetAgeRestriction > GetTopIssues >@@ -4215,29 +4214,6 @@ sub TransferSlip { > ); > } > >-=head2 CheckIfIssuedToPatron >- >- CheckIfIssuedToPatron($borrowernumber, $biblionumber) >- >- Return 1 if any record item is issued to patron, otherwise return 0 >- >-=cut >- >-sub CheckIfIssuedToPatron { >- my ($borrowernumber, $biblionumber) = @_; >- >- my $dbh = C4::Context->dbh; >- my $query = q| >- SELECT COUNT(*) FROM issues >- LEFT JOIN items ON items.itemnumber = issues.itemnumber >- WHERE items.biblionumber = ? >- AND issues.borrowernumber = ? >- |; >- my $is_issued = $dbh->selectrow_array($query, {}, $biblionumber, $borrowernumber ); >- return 1 if $is_issued; >- return; >-} >- > =head2 IsItemIssued > > IsItemIssued( $itemnumber ) >-- >2.34.1
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 16260
: 156518 |
156519