[Koha-bugs] [Bug 35250] Eliminate circular dependencies caused by C4::Context
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 22 19:24:03 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35250
Blou <philippe.blouin at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #159736|0 |1
is obsolete| |
--- Comment #12 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 163734
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163734&action=edit
Bug 35250: remove usages of Koha::Config::Syspref(s) from C4::Context
Use straigth SQL queries to access systempreferences instead of relying
on the ORM, thus removing all direct and indirect dependencies to
Koha::Object
To remove all dependencies between C4::Context and the db object model,
we move the calls to set_preference and delete_prefence directly to the
class object Koha::Config::SysPrefs
C4::Context::preference remains but uses straight SQL
C4::Context::set_preference moves to Koha::Config::SysPrefs::set_preference
C4::Context::delete_preference moves to
Koha::Config::SysPrefs::delete_preference
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list