Bug 24031: Add safety checks in Koha::Plugins::call
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 22 May 2020 10:29:11 +0000 (12:29 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
commit9319c8879fdd796d7293beca8f5017a4024bdbd9
treef969a358f94b8b984d8ec14697735705c6539d86
parente5e058e39fa97e5732f514ded46128b666bfba99
Bug 24031: Add safety checks in Koha::Plugins::call

- Check that the plugin has the method before calling it
- Call the method in an eval block to prevent fatal errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Plugins.pm