]> git.koha-community.org Git - koha.git/commit
Bug 19081: Do not list plugins that have been uninstalled
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 28 Aug 2017 17:00:28 +0000 (14:00 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sat, 14 Oct 2017 11:56:36 +0000 (13:56 +0200)
commit34ab316b1c7c8cd6d4272d1094350366095d7810
treedb526c3acf20cdc996c3bf9a53de3b4aa99b03d9
parentac8ba913ba42dc932929b5714684a8ec971b30d5
Bug 19081: Do not list plugins that have been uninstalled

Under plack, can_load should not check if a package is in cache, but
reload it. Otherwise plugins that have been uninstalled will still get
listed.
The error raised by can_load must only be displayed if the plugin has
been removed.

Test plan:
1/ Upload a plugin
2/ Note the plugin is listed as installed
3/ Modify the package of the plugin to add a compilation error (use
'Foo' for instance)
4/ Reload the page
5/ The plugin is not listed and a warning appear in the logs
6/ Remove the compilation error and uninstall the plugin
7/ The plugin is no longer listed and no warning appear in the logs

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Bug 19081: Remove useless $plugin_file variable

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d928038a523b7ef44257ddfe97c405173c9b3b2e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 53c84ea289e73fa2f56711dd8dd8e7ebac591ae7)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Koha/Plugins.pm