From ad7c9f807cef3b8adef6ef8f9ae0b3b02e4e2961 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 3 Sep 2025 13:38:09 +0000 Subject: [PATCH] Bug 28702: Don't fetch the transfer, knowing we have current transfers is enough We don't use the specific transfer, so the count should be sufficient --- C4/XSLT.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index 7cac9f8c743..6dda8d96f3f 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -337,7 +337,7 @@ sub buildKohaItemsNamespace { } elsif ( $item->_result->reserves->count && $item->holds->waiting->count ) { $status = 'other'; $substatus = 'Hold waiting'; - } elsif ( $item->_result->current_branchtransfers->count && $item->get_transfer ) { + } elsif ( $item->_result->current_branchtransfers->count ) { $status = 'other'; $substatus = 'In transit'; } elsif ( $item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems') ) { -- 2.39.5