@@ -, +, @@ not log run in action logs --- misc/cronjobs/automatic_item_modification_by_age.pl | 3 +++ 1 file changed, 3 insertions(+) --- a/misc/cronjobs/automatic_item_modification_by_age.pl +++ a/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 ) { --