]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 11 May 2020 07:55:13 +0000 (08:55 +0100)
commit82e866fcb549d25a6269d7a25138ae047c95bdb4
treedaf98e8e2f658aaaae5c86a75baf8cb5cbd8ddad
parentcc938e6be18ae4e81207bfdbd6a0a438529c60cc
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>
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