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>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
use Koha::Script -cron;
use C4::Context;
use C4::Items;
+use C4::Log;
# Getting options
my ( $verbose, $help, $confirm );
pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 })
if $@;
+cronlogaction();
+
my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } );
if ( $verbose ) {