Bug 36775: Allow multiple holds on record when holds per record is unlimited

To test:
1 set Holds Per Record to Unlimited
2 confirm hold placement interface does not include "Holds to place (count)"
3 apply patch, restart all
4 reload hold placement interface, confirm it does include "Holds to place (count)"
5 set Holds Per Record to 2
6 confirm Holds to place shows when placing a first hold for a patron, but not when placing a second
7 set Holds Per Record to 1
8 confirm Holds to Place does not show
9 sign off and eat a nice snack

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Andrew Fuerste Henry 2024-05-09 16:00:12 +00:00 committed by Katrin Fischer
parent 37bda5d130
commit c345e68769
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -664,7 +664,7 @@
</select>
</li>
[% END %]
[% IF remaining_holds_for_record > 1 %]
[% UNLESS remaining_holds_for_record == 1 %]
<li>
<label for="holds_to_place_count">Holds to place (count)</label>
<input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" />