bug_2830: Remove reserve when checking out if the borrower is not the first one in...
authorSrdjan Jankovic <srdjan@catalyst.net.nz>
Thu, 13 Oct 2011 03:57:41 +0000 (16:57 +1300)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Dec 2011 15:21:38 +0000 (16:21 +0100)
commit6e07fd7b004b5cb16ea0bec764993c1e9ffe153c
tree43fa4595f2d78baef834cdd3142b65fa0e021e81
parent86d6e6d3de0a8d935802abe843f7ec407af1c759
bug_2830: Remove reserve when checking out if the borrower is not the first one in the reserve queue

To test:
Create 4 holds on a bib, for patrons A, B, C, and D,

Check in the item to mark hold as waiting for patron A
Check out the item to patron B -> reserve for patron B should be removed
Check in the item to mark hold as waiting for patron A
Check out the item to Patron A, hold should complete normally
Check in the item to mark hold as waiting for patron C
Check out the item to patron D -> reserve for patron D should be removed.
Check in the item to mark hold as waiting for patron C
Check out the item to patron C, hold should complete normally
Check in the item -> there should be no more reserves.

We also tested:
Created 4 holds on a bib with two items, for patrons A, B, C, and D

All worked as expected.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Circulation.pm
C4/Items.pm
C4/Reserves.pm
C4/Search.pm
C4/XSLT.pm
circ/circulation.pl
opac/opac-user.pl
t/db_dependent/Reserves.t
t/db_dependent/lib/KohaTest/Reserves.pm