Lines 137-150
my $itemnumber2 = $item2->{itemnumber};
Link Here
|
137 |
|
137 |
|
138 |
my $dbh = C4::Context->dbh; |
138 |
my $dbh = C4::Context->dbh; |
139 |
$dbh->do('DELETE FROM reserves'); |
139 |
$dbh->do('DELETE FROM reserves'); |
140 |
$dbh->do('DELETE FROM circulation_rules'); |
140 |
Koha::CirculationRules->search()->delete(); |
141 |
Koha::CirculationRules->set_rules( |
141 |
Koha::CirculationRules->set_rules( |
142 |
{ |
142 |
{ |
143 |
categorycode => '*', |
143 |
categorycode => '*', |
144 |
branchcode => '*', |
144 |
branchcode => '*', |
145 |
itemtype => '*', |
145 |
itemtype => '*', |
146 |
rules => { |
146 |
rules => { |
147 |
reservesallowed => 1 |
147 |
reservesallowed => 1, |
|
|
148 |
holds_per_record => 99 |
148 |
} |
149 |
} |
149 |
} |
150 |
} |
150 |
); |
151 |
); |
151 |
- |
|
|