Bug 24485: Allow hold when some can be overridden
authorNick Clemens <nick@bywatersolutions.com>
Tue, 28 Jan 2020 13:57:32 +0000 (13:57 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 6 Feb 2020 20:25:58 +0000 (20:25 +0000)
commitd52983cf3d448d18b0b0086968a506522e3cc816
tree9ba5793476358bbf88fa959cb68d81cff1e51918
parentc46c1d1686346b5087cac2bd0c56d662ca0dab03
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>
reserve/request.pl