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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 5 Feb 2020 12:32:31 +0000 (12:32 +0000)
commit1e2617342a156e58c3b59d6534842984c2f01df4
tree2f99d8a72b783127a1d3ccc00d2f0cea7d2a6a9a
parentc54163940d9fa1fb173ae236a1e093cc50cadba8
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>
reserve/request.pl