Bugzilla – Attachment 90147 Details for
Bug 11999
Add two checks in CanBookBeReserved and CanItemBeReserved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11999: Remove the "biblio already reserved" check in CanItemBeReserved
Bug-11999-Remove-the-biblio-already-reserved-check.patch (text/plain), 1.09 KB, created by
Arthur Suzuki
on 2019-05-28 08:38:53 UTC
(
hide
)
Description:
Bug 11999: Remove the "biblio already reserved" check in CanItemBeReserved
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2019-05-28 08:38:53 UTC
Size:
1.09 KB
patch
obsolete
>From 68690543d2c1c5762f5a45bec8b99eb83623d3fa Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 21 Aug 2017 13:13:44 +0200 >Subject: [PATCH] Bug 11999: Remove the "biblio already reserved" check in > CanItemBeReserved > >--- > C4/Reserves.pm | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 81b6ce7e0e..cedd8f7410 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -360,12 +360,10 @@ sub CanItemBeReserved { > return { status =>'itemAlreadyOnHold' } > if Koha::Holds->search( { borrowernumber => $borrowernumber, itemnumber => $itemnumber } )->count(); > >- # Check if borrower already has reserved the same item or biblio. >+ # Check if borrower already has reserved the same item. > my $holds = $patron->holds; > while (my $hold = $holds->next) { >- if ( $hold->itemnumber == $itemnumber >- or $hold->biblionumber == $item->{biblionumber} ) >- { >+ if ( $hold->itemnumber == $itemnumber ) { > return { status => 'alreadyReserved' }; > } > } >-- >2.11.0
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 11999
:
26589
|
28986
|
31524
|
35697
|
36358
|
36404
|
36630
|
38397
|
41951
|
41952
|
44631
|
44632
|
46262
|
46263
|
50224
|
50225
|
58741
|
58742
|
58743
|
63593
|
63594
|
63595
|
66267
|
66268
|
66269
|
66270
|
88300
|
88301
|
88302
|
88303
|
90142
|
90143
|
90144
|
90146
|
90147
|
91046
|
91402
|
91403
|
91479
|
91481
|
91494
|
91580
|
91581
|
91582
|
91590
|
91591
|
91592
|
91593
|
99927
|
99928
|
106481
|
106494
|
111687
|
111688
|
111689
|
112871
|
112872
|
112873
|
112874
|
120776
|
120777
|
120778
|
120779
|
120780
|
121531
|
121612