Bugzilla – Attachment 72217 Details for
Bug 13287
Add a system preference to define the number of days used in purge_suggestions.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13287: Remove warning if --days is not passed and pref empty
Bug-13287-Remove-warning-if---days-is-not-passed-a.patch (text/plain), 927 bytes, created by
Jonathan Druart
on 2018-02-26 16:02:34 UTC
(
hide
)
Description:
Bug 13287: Remove warning if --days is not passed and pref empty
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-26 16:02:34 UTC
Size:
927 bytes
patch
obsolete
>From a833cefc1cca68fb6ea3c5fa3207b0db2787f867 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 26 Feb 2018 13:01:05 -0300 >Subject: [PATCH] Bug 13287: Remove warning if --days is not passed and pref > empty > >--- > misc/cronjobs/purge_suggestions.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/purge_suggestions.pl b/misc/cronjobs/purge_suggestions.pl >index 543d629273..766f501db5 100755 >--- a/misc/cronjobs/purge_suggestions.pl >+++ b/misc/cronjobs/purge_suggestions.pl >@@ -62,7 +62,7 @@ $days = C4::Context->preference('PurgeSuggestionsOlderThan') if !defined($days); > if( !$confirm || $help || !defined($days) ) { > print "No confirm parameter passed!\n\n" if !$confirm && !$help; > print $usage; >-} elsif( $days > 0 ) { >+} elsif( $days and $days > 0 ) { > cronlogaction(); > DelSuggestionsOlderThan($days); > } else { >-- >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 13287
:
33661
|
41219
|
44312
|
48323
|
48324
|
50296
|
50297
|
60569
|
60570
|
68187
|
69142
|
69143
|
72105
|
72106
|
72107
|
72108
|
72109
| 72217