Bugzilla – Attachment 35091 Details for
Bug 5144
Duplicate holds allowed if patron clicks back button after placing hold
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5144 [2] - Duplicate holds allowed if patron clicks back button after placing hold
Bug-5144-2---Duplicate-holds-allowed-if-patron-cli.patch (text/plain), 1.39 KB, created by
Kyle M Hall (khall)
on 2015-01-09 15:24:17 UTC
(
hide
)
Description:
Bug 5144 [2] - Duplicate holds allowed if patron clicks back button after placing hold
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-01-09 15:24:17 UTC
Size:
1.39 KB
patch
obsolete
>From b87bc91d0201622d8811646a0595f449210d26e8 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 4 Jun 2014 10:48:02 -0400 >Subject: [PATCH] Bug 5144 [2] - Duplicate holds allowed if patron clicks back button after placing hold > >Koha is currently not engineered to handle multiple holds per record. >Until such time that is does, we should not allow them to be created. > >Test Plan: >1) Apply this patch >2) Log in to the opac >3) Place a hold >4) Hit the back button on your browser >5) Place the hold again >6) Note the new message >--- > C4/Reserves.pm | 11 +++++++++++ > 1 files changed, 11 insertions(+), 0 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 22a9ecb..e04c3fc 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -154,6 +154,17 @@ sub AddReserve { > $constraint, $bibitems, $priority, $resdate, $expdate, $notes, > $title, $checkitem, $found > ) = @_; >+ >+ my ($count) = C4::Context->dbh->selectrow_array( >+ 'SELECT COUNT(*) FROM reserves WHERE biblionumber = ? AND borrowernumber = ?', >+ undef, >+ ( $biblionumber, $borrowernumber ) >+ ); >+ if ( $count > 0 ) { >+ carp("AddReserve: borrower $borrowernumber already has $count holds for biblionumber $biblionumber"); >+ return; >+ } >+ > my $fee = > GetReserveFee($borrowernumber, $biblionumber, $constraint, > $bibitems ); >-- >1.7.2.5
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 5144
:
28657
|
28658
|
28659
|
34983
|
34984
|
34985
|
34986
|
34987
|
34988
|
35090
|
35091
|
35092
|
35093
|
35451
|
40823
|
40824
|
42530
|
42792
|
42848
|
43118
|
43119
|
43120
|
43121
|
43122
|
43125
|
43126
|
43164
|
43165
|
43166
|
43167