[Koha-bugs] [Bug 32478] Remove Koha::Config::SysPref->find since bypasses cache

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 4 14:54:46 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32478

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at bywatersolutions.com

--- Comment #3 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #2)
> I don't think the removal here is correct, the method does more than
> C4::Context->yaml_preference
> 
> Nick maybe?

perl -e 'use Koha::Config::SysPrefs; use C4::Context; my $sp =
Koha::Config::SysPrefs->find("ItemsDeniedRenewal")->get_yaml_pref_hash; warn
Data::Dumper::Dumper($sp); warn Data::Dumper::Dumper(
C4::Context->yaml_preference("ItemsDeniedRenewal"));'

It doesn't convert from 'NULL' to undef - the expectation is that we can pass
the return value into a DBIC search directly

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list