[Koha-bugs] [Bug 35930] <enable_plugins> variable in koha-conf breaks non-plugin module

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 12 12:26:11 CET 2024


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

--- Comment #2 from Andreas Jonsson <andreas.jonsson at kreablo.se> ---
Created attachment 162018
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162018&action=edit
Bug 35930: Add guards for plugins_enabled

There are ILL-backends that are not implemented as
Koha plubins and does not require plugins to be enabled.

The 'new' method in Koha::Plugins returns undefined if
plugins are disabled.  Therefore, calls to this method
must be guarded by a check that plugins actually are enabled.

Test plan:

* Code inspection of patch, alternatively
* Activate the ill system by installing a backend such as
  koha-illbackend-libris:
  https://github.com/Libriotech/koha-illbackend-libris
* Make sure plugins are disabled in koha-conf.xml
* In the staff interface, go to ILL requests.
* The page should load without getting an error 500.

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


More information about the Koha-bugs mailing list