[Koha-bugs] [Bug 23580] Add C4::Context->yaml_preference
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Sep 11 13:27:33 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23580
--- Comment #8 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
One point of attention:
C4/Circulation.pm: my $update_loc_rules =
get_yaml_pref_hash('UpdateItemLocationOnCheckin');
C4/Circulation.pm: my $denyingrules =
Koha::Config::SysPrefs->find('ItemsDeniedRenewal')->get_yaml_pref_hash();
This routine comes from Koha/Util/SystemPreferences.pm.
It is parsing (probably) a small subset of YAML constructions, and is meant to
always return a hashref. Surely, we could better use YAML to parse and expect
both arrayrefs and hashrefs.
So, I would recommend to remove get_yaml_pref_hash now too.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list