From fc10c2572593cc3492535d48959f968c82b476fd 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 (cherry picked from commit 064500bc9670e5a96d41bbd9cafe0061afb26471) Signed-off-by: Andrew Fuerste-Henry --- Koha/Items.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Items.pm b/Koha/Items.pm index efa467e47e..41fe540136 100644 --- a/Koha/Items.pm +++ b/Koha/Items.pm @@ -42,7 +42,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