Bugzilla – Attachment 125361 Details for
Bug 29121
Plugins with broken ->install prevent access to the plugins list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29121: Add POD to plugins
Bug-29121-Add-POD-to-plugins.patch (text/plain), 1.54 KB, created by
Kyle M Hall (khall)
on 2021-09-27 11:58:42 UTC
(
hide
)
Description:
Bug 29121: Add POD to plugins
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-09-27 11:58:42 UTC
Size:
1.54 KB
patch
obsolete
>From 051addf7af8794ee9d90983e3d09c60edd0eb22c Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 27 Sep 2021 11:55:06 +0000 >Subject: [PATCH] Bug 29121: Add POD to plugins > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/lib/Koha/Plugin/BrokenInstall.pm | 14 ++++++++++++++ > t/lib/Koha/Plugin/BrokenUpgrade.pm | 14 ++++++++++++++ > 2 files changed, 28 insertions(+) > >diff --git a/t/lib/Koha/Plugin/BrokenInstall.pm b/t/lib/Koha/Plugin/BrokenInstall.pm >index f55df4ab202..86146ba2dfb 100644 >--- a/t/lib/Koha/Plugin/BrokenInstall.pm >+++ b/t/lib/Koha/Plugin/BrokenInstall.pm >@@ -16,6 +16,14 @@ our $metadata = { > version => $VERSION, > }; > >+=head1 METHODS >+ >+=head2 new >+ >+instantiate the plugin >+ >+=cut >+ > sub new { > my ( $class, $args ) = @_; > $args->{'metadata'} = $metadata; >@@ -23,6 +31,12 @@ sub new { > return $self; > } > >+=head2 install >+ >+install method that dies >+ >+=cut >+ > sub install { > die "Why Liz? WHY?"; > } >diff --git a/t/lib/Koha/Plugin/BrokenUpgrade.pm b/t/lib/Koha/Plugin/BrokenUpgrade.pm >index 7ecde3ead89..bdf5f040180 100644 >--- a/t/lib/Koha/Plugin/BrokenUpgrade.pm >+++ b/t/lib/Koha/Plugin/BrokenUpgrade.pm >@@ -16,6 +16,14 @@ our $metadata = { > version => $VERSION, > }; > >+=head1 METHODS >+ >+=head2 new >+ >+Instantiate the plugin >+ >+=cut >+ > sub new { > my ( $class, $args ) = @_; > $args->{'metadata'} = $metadata; >@@ -23,6 +31,12 @@ sub new { > return $self; > } > >+=head2 upgrade >+ >+upgrade method that dies >+ >+=cut >+ > sub upgrade { > die "Why Liz? WHY?"; > } >-- >2.30.2
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 29121
:
125352
|
125353
|
125354
|
125357
|
125358
|
125359
|
125360
|
125361
|
125477
|
125478
|
125479
|
125480