Bug 18936: Fix api/v1/holds.t
Signed-off-by: Minna Kivinen <minna.kivinen@hamk.fi> Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
40d8a72a9d
commit
a957114bd1
|
|
@ -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
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue