Browse Source

Bug 24526: (follow-up) clean up verbose conditional

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Nick Clemens 3 years ago
committed by Martin Renvoize
parent
commit
aa9ad782ce
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 6
      misc/cronjobs/automatic_renewals.pl

6
misc/cronjobs/automatic_renewals.pl

@ -93,8 +93,10 @@ while ( my $auto_renew = $auto_renews->next ) {
my $date_due = AddRenewal( $auto_renew->borrowernumber, $auto_renew->itemnumber, $auto_renew->branchcode );
$auto_renew->auto_renew_error(undef)->store;
}
$verbose && print "Issue id: " . $auto_renew->issue_id . " for borrower: " . $auto_renew->borrowernumber . " and item: " . $auto_renew->itemnumber;
$verbose && $commit ? print " will be renewed.\n" : print " would be renewed.\n";
if ( $verbose ){
print "Issue id: " . $auto_renew->issue_id . " for borrower: " . $auto_renew->borrowernumber . " and item: " . $auto_renew->itemnumber;
$commit ? print " will be renewed.\n" : print " would be renewed.\n";
}
push @{ $report{ $auto_renew->borrowernumber } }, $auto_renew;
} elsif ( $error eq 'too_many'
or $error eq 'on_reserve'

Loading…
Cancel
Save