[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
Tue Dec 12 14:18:27 CET 2023


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

Salah Ghedda <salah.ghedda at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #158362|0                           |1
        is obsolete|                            |

--- Comment #7 from Salah Ghedda <salah.ghedda at inlibro.com> ---
Created attachment 159736
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159736&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