Bug 24485: Allow hold when some can be overridden
commita044f6365be947f8e97bd10a5ed4c6510f634eab
authorNick Clemens <nick@bywatersolutions.com>
Tue, 28 Jan 2020 13:57:32 +0000 (28 13:57 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 7 Feb 2020 20:29:12 +0000 (7 20:29 +0000)
treebecdcd087d2ef27a8e3158cd5697dbb95ec97c58
parent95d398d34b32c8b09c365e418ab7a580a14dd765
Bug 24485: Allow hold when some can be overridden

The check to see if we can place a hold counts the number that we can override vs the number of items on the record.

We cannot override if we already have a hold on an item, however, we don't count these to see if they plus
the number of overrides equal the items on the record.

To test:
1 - Set max reserves to 2, allow 2 holds per recrod
2 - Place 2 holds for a patron on some records
3 - Find another record with 2 items
4 - Place a hold on the first item, you will be notified about the limit but you can override
5 - Attempt to place hold on second item, cannot be done, button disabled
6 - Apply patch
7 - Repeat
8 - You can place the second hold

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit d52983cf3d448d18b0b0086968a506522e3cc816)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
reserve/request.pl