Bug 25184: Add syspref
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Apr 2020 16:52:38 +0000 (12:52 -0400)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 15 May 2020 21:54:31 +0000 (21:54 +0000)
commit0b5c428eed221991443bbffa30bd0f5d5a050b0a
tree1f2a0d03d5f9c7c4186e798843b8f32e812d6fdf
parent19953fc68703b3a8b067153ab5719d14b39ca709
Bug 25184: Add syspref

It's entirely possible that some libraries are relying on the current
before for part of their workflow. Do to this possibility, it seems like
a good idea to control this behavior via a system preference.

Test Plan:
1) Apply this patch set
2) Run updatedatabase.pl
3) Set TrapHoldsOnOrder to "don't trap"
4) Set an item's notforloan value to -1
5) Place a hold on that item
6) Check in the item
7) Note the item is not trapped for hold
9) Set TrapHoldsOnOrder to "trap"
10) Check in the item
11) Koha should now ask if you'd like to trap the item for the hold!

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit bb3893720d55100380bf431cf6aea8a044a9bd04)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Reserves.pm
installer/data/mysql/atomicupdate/bug_25184.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
t/db_dependent/Holds.t