From 064500bc9670e5a96d41bbd9cafe0061afb26471 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 Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- Koha/Items.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index 895123c7be..ced8653b46 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.39.5