Bugzilla – Attachment 62110 Details for
Bug 17738
Move GetReservesFromBorrowernumber to Koha::Patron->holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17738: Remove C4::Reserves::GetReservesFromBorrowernumber
Bug-17738-Remove-C4ReservesGetReservesFromBorrower.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2017-04-12 16:44:10 UTC
(
hide
)
Description:
Bug 17738: Remove C4::Reserves::GetReservesFromBorrowernumber
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-12 16:44:10 UTC
Size:
1.75 KB
patch
obsolete
>From a2ce530121c26a0da2b8f8132863d557a703c186 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 7 Dec 2016 14:43:43 +0100 >Subject: [PATCH] Bug 17738: Remove C4::Reserves::GetReservesFromBorrowernumber > >At this point, there should not be any occurrences of >GetReservesFromBorrowernumber anymore. >--- > C4/Reserves.pm | 35 ----------------------------------- > 1 file changed, 35 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 3192d50..60417e2 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -104,7 +104,6 @@ BEGIN { > &AddReserve > > &GetReserve >- &GetReservesFromBorrowernumber > &GetReservesForBranch > &GetReservesToBranch > &GetReserveCount >@@ -278,40 +277,6 @@ sub GetReserve { > return $sth->fetchrow_hashref(); > } > >-=head2 GetReservesFromBorrowernumber >- >- $borrowerreserv = GetReservesFromBorrowernumber($borrowernumber,$tatus); >- >-TODO :: Descritpion >- >-=cut >- >-sub GetReservesFromBorrowernumber { >- my ( $borrowernumber, $status ) = @_; >- my $dbh = C4::Context->dbh; >- my $sth; >- if ($status) { >- $sth = $dbh->prepare(" >- SELECT * >- FROM reserves >- WHERE borrowernumber=? >- AND found =? >- ORDER BY reservedate >- "); >- $sth->execute($borrowernumber,$status); >- } else { >- $sth = $dbh->prepare(" >- SELECT * >- FROM reserves >- WHERE borrowernumber=? >- ORDER BY reservedate >- "); >- $sth->execute($borrowernumber); >- } >- my $data = $sth->fetchall_arrayref({}); >- return @$data; >-} >- > =head2 CanBookBeReserved > > $canReserve = &CanBookBeReserved($borrowernumber, $biblionumber) >-- >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 17738
:
58020
|
58021
|
62109
|
62110
|
62188
|
62189
|
62208
|
62219
|
64330
|
64331
|
64332
|
64749
|
64750
|
64751
|
64752