Lines 114-127
my $item_2 = $builder->build_sample_item({ biblionumber => $biblio_2->biblionu
Link Here
|
114 |
|
114 |
|
115 |
my $dbh = C4::Context->dbh; |
115 |
my $dbh = C4::Context->dbh; |
116 |
$dbh->do('DELETE FROM reserves'); |
116 |
$dbh->do('DELETE FROM reserves'); |
117 |
$dbh->do('DELETE FROM circulation_rules'); |
117 |
Koha::CirculationRules->search()->delete(); |
118 |
Koha::CirculationRules->set_rules( |
118 |
Koha::CirculationRules->set_rules( |
119 |
{ |
119 |
{ |
120 |
categorycode => '*', |
120 |
categorycode => '*', |
121 |
branchcode => '*', |
121 |
branchcode => '*', |
122 |
itemtype => '*', |
122 |
itemtype => '*', |
123 |
rules => { |
123 |
rules => { |
124 |
reservesallowed => 1 |
124 |
reservesallowed => 1, |
|
|
125 |
holds_per_record => 99 |
125 |
} |
126 |
} |
126 |
} |
127 |
} |
127 |
); |
128 |
); |
128 |
- |
|
|