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 8-13 use JSON; Link Here
8
8
9
use C4::Context;
9
use C4::Context;
10
use C4::Items;
10
use C4::Items;
11
use C4::Log;
11
12
12
# Getting options
13
# Getting options
13
my ( $verbose, $help, $confirm );
14
my ( $verbose, $help, $confirm );
Lines 26-31 my $rules = eval { JSON::from_json( $syspref_content ) }; Link Here
26
pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 })
27
pod2usage({ -message => "Unable to load the configuration : $@", -exitval => 1 })
27
    if $@;
28
    if $@;
28
29
30
cronlogaction();
31
29
my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } );
32
my $report = C4::Items::ToggleNewStatus( { rules => $rules, report_only => not $confirm } );
30
33
31
if ( $verbose ) {
34
if ( $verbose ) {
32
- 

Return to bug 20101