Bugzilla – Attachment 102652 Details for
Bug 20101
Cronjob automatic_item_modification_by_age.pl does not log run in action logs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs
Bug-20101-Cronjob-automaticitemmodificationbyagepl.patch (text/plain), 1.38 KB, created by
Kyle M Hall
on 2020-04-09 17:33:33 UTC
(
hide
)
Description:
Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action logs
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2020-04-09 17:33:33 UTC
Size:
1.38 KB
patch
obsolete
>From c2e6a33de15032a869079de87d3159093fc1354f Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Tue, 30 Jan 2018 11:10:07 -0500 >Subject: [PATCH] Bug 20101: Cronjob automatic_item_modification_by_age.pl does > not log run in action logs > >C4::Log::cronlogaction() was never implemented in automatic_item_modification_by_age.pl. > >Test Plan: >1) Apply this patch >2) Enable CronjobLog >3) Run automatic_item_modification_by_age.pl succesfully >4) Note the run is noted in the action logs > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > misc/cronjobs/automatic_item_modification_by_age.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/misc/cronjobs/automatic_item_modification_by_age.pl b/misc/cronjobs/automatic_item_modification_by_age.pl >index 364f61f183..e944ac8c11 100755 >--- a/misc/cronjobs/automatic_item_modification_by_age.pl >+++ b/misc/cronjobs/automatic_item_modification_by_age.pl >@@ -9,6 +9,7 @@ use JSON; > use Koha::Script -cron; > use C4::Context; > use C4::Items; >+use C4::Log; > > # Getting options > my ( $verbose, $help, $confirm ); >@@ -27,6 +28,8 @@ my $rules = eval { JSON::from_json( $syspref_content ) }; > pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 }) > if $@; > >+cronlogaction(); >+ > my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } ); > > if ( $verbose ) { >-- >2.24.1 (Apple Git-126)
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 20101
:
71064
|
71068
|
71069
|
71070
|
102652
|
102653
|
102809
|
102810
|
103118