Bugzilla – Attachment 122663 Details for
Bug 23653
Plack fails when http://swagger.io/v2/schema.json is unavailable and schema cache missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23653: [19.11] Remove uneeded cond test
Bug-23653-1911-Remove-uneeded-cond-test.patch (text/plain), 1.17 KB, created by
Wainui Witika-Park
on 2021-07-08 01:58:46 UTC
(
hide
)
Description:
Bug 23653: [19.11] Remove uneeded cond test
Filename:
MIME Type:
Creator:
Wainui Witika-Park
Created:
2021-07-08 01:58:46 UTC
Size:
1.17 KB
patch
obsolete
>From d32f43039b0e8ff89d3bccc2298c35d49fa1a418 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 Aug 2020 10:59:46 +0200 >Subject: [PATCH] Bug 23653: [19.11] Remove uneeded cond test > >rel_file returns the path anyway > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz> >--- > Koha/REST/Plugin/PluginRoutes.pm | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/Koha/REST/Plugin/PluginRoutes.pm b/Koha/REST/Plugin/PluginRoutes.pm >index d32374d52e..a0b7caf66f 100644 >--- a/Koha/REST/Plugin/PluginRoutes.pm >+++ b/Koha/REST/Plugin/PluginRoutes.pm >@@ -48,10 +48,7 @@ sub register { > if ( C4::Context->preference('UseKohaPlugins') > && C4::Context->config("enable_plugins") ) > { >- my $schema = $app->home->rel_file("api/swagger-v2-schema.json"); >- if ($schema){ >- $self->{'swagger-v2-schema'} = $schema; >- } >+ $self->{'swagger-v2-schema'} = $app->home->rel_file("api/swagger-v2-schema.json"); > > # plugin needs to define a namespace > @plugins = Koha::Plugins->new()->GetPlugins( >-- >2.11.0
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23653
:
106444
|
106445
|
107984
|
109095
|
109096
|
109113
|
109180
|
122333
|
122334
|
122335
|
122650
|
122651
|
122652
|
122662
| 122663 |
122664