From 7e7cf605a9f4366320a330e4861686204cde30ec Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 23 Jul 2024 08:44:35 +0100 Subject: [PATCH] Bug 28762: (follow-up) Fix missed not_for_loan_status rename Signed-off-by: Martin Renvoize (cherry picked from commit 56621b992669b0b04e4134dd034cb5a4ac427e5c) Signed-off-by: Lucas Gass --- C4/ILSDI/Services.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 5bc3624687..48e5bf6e40 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -968,7 +968,7 @@ sub _availability { my $location = $library ? $library->branchname : ''; my $itemcallnumber = $item->itemcallnumber; - if ( $item->effective_notforloan ) { + if ( $item->effective_not_for_loan_status ) { return ( $biblionumber, __('not available'), __('Not for loan'), $location, $itemcallnumber ); } elsif ( $item->onloan ) { return ( $biblionumber, __('not available'), __('Checked out'), $location, $itemcallnumber ); -- 2.39.5