Bug 31112: (follow-up) Don't return "on_reserve" when there are 0 possible holds
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Mon, 22 Aug 2022 19:02:14 +0000 (19:02 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 26 Aug 2022 18:59:20 +0000 (15:59 -0300)
commit507edad61f16d99d4fba4ce343cbaa6eb3950957
treefec9c9475b0f921388137f6d144d4b70bdaef5da
parent8ad992630181413d3be9935309b61d50d2e3a951
Bug 31112: (follow-up) Don't return "on_reserve" when there are 0 possible holds

It's possible that there could be 0 possible reserves, for example
when the hold has already been filled, thus the check would fail as
the item count can never be less than 0.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm