View | Details | Raw Unified | Return to bug 20101
Collapse All | Expand All

(-)a/misc/cronjobs/automatic_item_modification_by_age.pl (-1 / +3 lines)
Lines 9-14 use JSON; Link Here
9
use Koha::Script -cron;
9
use Koha::Script -cron;
10
use C4::Context;
10
use C4::Context;
11
use C4::Items;
11
use C4::Items;
12
use C4::Log;
12
13
13
# Getting options
14
# Getting options
14
my ( $verbose, $help, $confirm );
15
my ( $verbose, $help, $confirm );
Lines 27-32 my $rules = eval { JSON::from_json( $syspref_content ) }; Link Here
27
pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 })
28
pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 })
28
    if $@;
29
    if $@;
29
30
31
cronlogaction();
32
30
my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } );
33
my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } );
31
34
32
if ( $verbose ) {
35
if ( $verbose ) {
33
- 

Return to bug 20101