From 9056f4f573cf50fbcc66cf42fa3990e2481821ac Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 15 Jun 2022 16:18:08 -0300 Subject: [PATCH] Bug 30971: (follow-up) Fix one more occurence To test: 1. Run: $ git grep 'recall.itemnumber' => SUCCESS: No more occurences 2. Run: $ git grep 'recall.biblionumber' => SUCCESS: No more occurences 3. Run: $ git grep 'recall\->biblionumber' => SUCCESS: No more occurences 4. Run: $ git grep 'recall\->itemnumber' => FAIL: One standing occurence 5. Apply this patch 6. Repeat 4 => SUCCESS: No more occurences 7. Sign off :-D Signed-off-by: Tomas Cohen Arazi --- svc/checkouts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/checkouts b/svc/checkouts index c6a3e6c6f3..b8e84f4704 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -221,7 +221,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { $recall = $item->check_recalls if $item->can_be_waiting_recall; if ( defined $recall ) { if ( $recall->item_level ) { - if ( $recall->itemnumber == $c->{itemnumber} ) { + if ( $recall->item_id == $c->{itemnumber} ) { # item-level recall on this item $recalled = 1; } else { -- 2.36.1