Lines 251-257
if ( $step == 5 ) {
Link Here
|
251 |
branchcode => $branchcode, |
251 |
branchcode => $branchcode, |
252 |
categorycode => $categorycode, |
252 |
categorycode => $categorycode, |
253 |
itemtype => $itemtype, |
253 |
itemtype => $itemtype, |
254 |
maxissueqty => $maxissueqty, |
|
|
255 |
renewalsallowed => $renewalsallowed, |
254 |
renewalsallowed => $renewalsallowed, |
256 |
renewalperiod => $renewalperiod, |
255 |
renewalperiod => $renewalperiod, |
257 |
issuelength => $issuelength, |
256 |
issuelength => $issuelength, |
Lines 268-273
if ( $step == 5 ) {
Link Here
|
268 |
else { |
267 |
else { |
269 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
268 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
270 |
} |
269 |
} |
|
|
270 |
|
271 |
eval { |
272 |
Koha::CirculationRules->set_rules( |
273 |
{ |
274 |
categorycode => $categorycode, |
275 |
itemtype => $itemtype, |
276 |
branchcode => $branchcode, |
277 |
rules => { |
278 |
maxissueqty => $maxissueqty, |
279 |
} |
280 |
} |
281 |
); |
282 |
}; |
283 |
|
284 |
unless ($@) { |
285 |
push @messages, { code => 'success_on_insert_circ_rule' }; |
286 |
} |
287 |
else { |
288 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
289 |
} |
271 |
} |
290 |
} |
272 |
|
291 |
|
273 |
$step++ if Koha::IssuingRules->count; |
292 |
$step++ if Koha::IssuingRules->count; |
274 |
- |
|
|