From 9d69b058697422c28edede4e94f2c22f46ef9417 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 5 Oct 2021 14:32:47 +0200 Subject: [PATCH] Bug 3142: Add note about imprecision of filter_by_for_hold --- Koha/Items.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 895123c7beb..ced8653b46e 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -43,7 +43,10 @@ Koha::Items - Koha Item object set class my $filtered_items = $items->filter_by_for_hold; -Return the items of the set that are holdable +Return the items of the set that are *potentially* holdable + +Caller has the responsability to call C4::Reserves::CanItemBeReserved before +placing a hold on one of those items. =cut -- 2.25.1