From d127d662659aac6b36ecfeb6650d44968f0a2509 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 17 Jul 2017 16:21:56 -0300 Subject: [PATCH] Bug 18936: Fix api/v1/holds.t --- t/db_dependent/api/v1/holds.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/api/v1/holds.t b/t/db_dependent/api/v1/holds.t index 11fa62d34f..ba5aee4ea4 100644 --- a/t/db_dependent/api/v1/holds.t +++ b/t/db_dependent/api/v1/holds.t @@ -114,14 +114,15 @@ my $item_2 = $builder->build_sample_item({ biblionumber => $biblio_2->biblionu my $dbh = C4::Context->dbh; $dbh->do('DELETE FROM reserves'); -$dbh->do('DELETE FROM circulation_rules'); +Koha::CirculationRules->search()->delete(); Koha::CirculationRules->set_rules( { categorycode => '*', branchcode => '*', itemtype => '*', rules => { - reservesallowed => 1 + reservesallowed => 1, + holds_per_record => 99 } } ); -- 2.11.0