Bug 41449: Reserves.t - fix description and assumption for onshelfholds

Test plan:
prove t/db_dependent/Reserves.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2025-12-15 12:29:52 +01:00 committed by Lucas Gass
parent 1838b1c4a0
commit 8ba4d26dab
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 1 deletions

View File

@ -1483,9 +1483,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(