Bug 33431: Make C4::Circulation use C4::Context->yaml_preference
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 13:48:04 +0000 (10:48 -0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 18 Mar 2024 10:03:37 +0000 (11:03 +0100)
commit814d4fd05bf6a23aba1493b3e2117869438ea5f6
treef630c945a84b52b17ed765bd94ebe0990fce7528
parent7095b707ffc94f2fc821e669d675be43e6e867ba
Bug 33431: Make C4::Circulation use C4::Context->yaml_preference

This patch removes manual YAML handling for sysprefs in C4::Circulation.

It also makes C4::Context->yaml_preference not warn when undef is
retrieved from the sysprefs.

To test:
1. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Circulation*
=> SUCCESS: Tests pass!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Circulation.pm
C4/Context.pm