From 90bbdfdd4faa834f4f027df202ab5acadb544150 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 9 Jun 2022 10:22:16 -0300 Subject: [PATCH] Bug 30907: Fix incorrect uses of Koha::Recall->item_level_recall This attribute name was changed to *item_level* but this two remaining places kept calling it with the old name. To test, verify things don't explode when looking at checkouts with recalls and also in the log viewer. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit beb663836b45a77f45195774133cc9b78957fcd5) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 2 +- svc/checkouts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 323b3fa5c2..636406a0d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -372,7 +372,7 @@ [% loopro.object | html %] [% END %] [% ELSIF ( loopro.module == 'RECALLS' ) %] - [% IF loopro.recall.item_level_recall %] + [% IF loopro.recall.item_level %] Item-level recall on item [% ELSE %] Biblio-level recall on biblio diff --git a/svc/checkouts b/svc/checkouts index 7c28c2703d..c6a3e6c6f3 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -220,7 +220,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { my $recall = undef; $recall = $item->check_recalls if $item->can_be_waiting_recall; if ( defined $recall ) { - if ( $recall->item_level_recall ) { + if ( $recall->item_level ) { if ( $recall->itemnumber == $c->{itemnumber} ) { # item-level recall on this item $recalled = 1; -- 2.39.5