]> git.koha-community.org Git - koha.git/commit
Bug 28078: Add 'ignore_hold_counts' param to CanItemBeReserved
authorNick Clemens <nick@bywatersolutions.com>
Fri, 2 Apr 2021 14:29:19 +0000 (14:29 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Apr 2021 08:58:52 +0000 (10:58 +0200)
commitda72406fa52fe44574d8a64eeca1d8942cc86e99
tree58d398bde10bbd9815937c6e6073c3149f17a904
parent1ce9a74c920591ad7f1ea9a55e99a92cc1e9d5b7
Bug 28078: Add 'ignore_hold_counts' param to CanItemBeReserved

This patch adds an optional param 'ignore_hold_counts' to the routine, while still forbidding holds when 0 are allowed

To test:
1 - prove -v t/db_dependent/Holds.t

Signed-off-by: David Nind <david@davidnind.com>
JK: Commit message amended: Fixed title formatting
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d3adcec676f97a1456dbb072479a99f7224e724c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reserves.pm
t/db_dependent/Holds.t