Bug 37271: Recall status should be 'requested' in overdue_recalls.pl

In "Bug 19532: Make recalls.status an ENUM" one-letter statuses were
replaced by their verbal equivalents.  But in overdue_recalls.pl
remained "R".  As a result, recalls never overdue.

No test plan provided--obvious correction.

Sponsored-by: Ignatianum University in Cracow
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Janusz Kaczmarek 2024-07-08 09:35:12 +00:00 committed by Katrin Fischer
parent cf2fcbda75
commit 771db8c399
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -38,7 +38,7 @@ my $command_line_options = join(" ",@ARGV);
cronlogaction({ info => $command_line_options });
my $recalls = Koha::Recalls->search({ status => 'R' });
my $recalls = Koha::Recalls->search({ status => 'requested' });
while( my $recall = $recalls->next ) {
if ( $recall->should_be_overdue ){
$recall->set_overdue({ interface => 'COMMANDLINE' });