[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 Nov 3 20:04:42 CET 2023


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

--- Comment #3 from Blou <philippe.blouin at inlibro.com> ---
Created attachment 158362
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158362&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