From: Kyle M Hall Date: Tue, 30 Jan 2018 16:10:07 +0000 (-0500) Subject: Bug 20101: Cronjob automatic_item_modification_by_age.pl does not log run in action... X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=52339bcef0d735b39a9ca9c198dd3d54d092fba7 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 Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- diff --git a/misc/cronjobs/automatic_item_modification_by_age.pl b/misc/cronjobs/automatic_item_modification_by_age.pl index 364f61f..e944ac8 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 ) {