Bugzilla – Attachment 156537 Details for
Bug 28688
Automatically renew patron membership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28688: Use pod2usage for incorrect usage
Bug-28688-Use-pod2usage-for-incorrect-usage.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2023-10-04 13:05:22 UTC
(
hide
)
Description:
Bug 28688: Use pod2usage for incorrect usage
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-04 13:05:22 UTC
Size:
1.13 KB
patch
obsolete
>From d584fc9176bd9cc18bd70eb99ccecb682c1003bd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Oct 2023 15:02:08 +0200 >Subject: [PATCH] Bug 28688: Use pod2usage for incorrect usage > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/cronjobs/membership_expiry.pl | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/misc/cronjobs/membership_expiry.pl b/misc/cronjobs/membership_expiry.pl >index 875a3481385..99487a0f638 100755 >--- a/misc/cronjobs/membership_expiry.pl >+++ b/misc/cronjobs/membership_expiry.pl >@@ -209,10 +209,12 @@ $letter_renew = 'MEMBERSHIP_RENEWED' if !$letter_renew; > > pod2usage( -verbose => 2 ) if $man; > pod2usage(1) if $help || !$confirm; >-if ( defined($active) && defined($inactive) ) { >- print "Sorry, it is not possible to pass both -active as well as -inactive.\n"; >- exit; >-} >+ >+pod2usage( >+ -verbose => 1, >+ -msg => q{The --active and --inactive flags are mutually exclusive}, >+ -exitval => 1 >+) if defined $active && defined $inactive; > > cronlogaction({ info => $command_line_options }); > >-- >2.34.1
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 28688
:
152378
|
152379
|
152380
|
152381
|
155170
|
155171
|
155172
|
155173
|
155222
|
155223
|
155224
|
155225
|
156522
|
156523
|
156524
|
156525
|
156533
|
156534
|
156535
|
156536
| 156537 |
156540