From 2d9c05c4c0726fd4f0ef1aa020f32f66213d50a9 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 15 Dec 2025 12:29:52 +0100 Subject: [PATCH] Bug 41449: Reserves.t - fix description and assumption for onshelfholds Test plan: prove t/db_dependent/Reserves.t Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall Signed-off-by: Laura Escamilla --- t/db_dependent/Reserves.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t index d0cb6ef5fa..5887ae1b97 100755 --- a/t/db_dependent/Reserves.t +++ b/t/db_dependent/Reserves.t @@ -1517,9 +1517,15 @@ subtest 'IsAvailableForItemLevelRequest() tests' => sub { value => { itemtype => $item_type } } ); + Koha::CirculationRules->set_rules( + { + categorycode => '*', itemtype => '*', branchcode => '*', + rules => { onshelfholds => 1 } + } + ); ok( C4::Reserves::IsAvailableForItemLevelRequest( $item, $patron ), - "Item not available for item-level hold because no effective item type" + "Item available for item-level hold because defined effective item type" ); Koha::CirculationRules->set_rules(