Bugzilla – Attachment 67108 Details for
Bug 19306
Adding hooks to the plugin system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug in run_matching when plugins are not available
Bug-in-runmatching-when-plugins-are-not-available.patch (text/plain), 1.14 KB, created by
Stefan Berndtsson
on 2017-09-13 09:41:14 UTC
(
hide
)
Description:
Bug in run_matching when plugins are not available
Filename:
MIME Type:
Creator:
Stefan Berndtsson
Created:
2017-09-13 09:41:14 UTC
Size:
1.14 KB
patch
obsolete
>From b844d9912d54986bcdf4d1eea8e640d590938bbe Mon Sep 17 00:00:00 2001 >From: Stefan Berndtsson <stefan.berndtsson@gmail.com> >Date: Wed, 13 Sep 2017 10:22:32 +0200 >Subject: [PATCH] Bug in run_matching when plugins are not available > >https://bugs.koha-community.org/show_bug.cgi?id=19306 >--- > Koha/Plugins/Handler.pm | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/Koha/Plugins/Handler.pm b/Koha/Plugins/Handler.pm >index 55563ae..a821ecb 100644 >--- a/Koha/Plugins/Handler.pm >+++ b/Koha/Plugins/Handler.pm >@@ -82,15 +82,13 @@ Run all plugins in sequence matching plugin_method > > sub run_matching { > my ( $class, $args ) = @_; >- >- return unless ( C4::Context->config("enable_plugins") || $args->{'enable_plugins'} ); >+ my $params = $args->{'params'}; >+ return $params unless ( C4::Context->config("enable_plugins") || $args->{'enable_plugins'} ); > > my $plugin_method = $args->{'method'}; > my @plugins = Koha::Plugins->new()->GetPlugins({ > method => $plugin_method > }); >- >- my $params = $args->{'params'}; > > foreach my $plugin (@plugins) { > $params = Koha::Plugins::Handler->run( >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 19306
:
67108
|
67109