[Koha-bugs] [Bug 31042] OVERRIDE_SYSPREF does not work for REST API
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 12 05:43:23 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31042
--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
Over time, we'll find global variables and singletons like C4::Context are
going to cause more and more headaches.
Yet, we've deeply embedded C4::Context->preference throughout all our code...
For example, Koha::Patron->store() is riddled with syspref calls.
Over time, it would be an idea to switch from C4::Context->preference() to
$c->syspref() and to pass preferences through function/method calls. (That
would help support multitenancy and non-blocking programming in the future
too.)
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list