]> git.koha-community.org Git - koha.git/commit
Bug 25184: Add syspref
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Apr 2020 16:52:38 +0000 (12:52 -0400)
committerJoy Nelson <joy@bywatersolutions.com>
Mon, 11 May 2020 21:49:16 +0000 (21:49 +0000)
commitbb3893720d55100380bf431cf6aea8a044a9bd04
tree2d0a6e205a0e4e55245913dfd6c58bc39b3fc874
parentaa9a4fc3f64787e536faabd4b49be76d1e8144f1
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>
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