Lines 272-278
if ( $step == 5 ) {
Link Here
|
272 |
hardduedatecompare => -1, |
272 |
hardduedatecompare => -1, |
273 |
holds_per_day => $holds_per_day, |
273 |
holds_per_day => $holds_per_day, |
274 |
holds_per_record => $holds_per_record, |
274 |
holds_per_record => $holds_per_record, |
275 |
maxissueqty => "", |
275 |
maxissueqty => $maxissueqty, |
276 |
maxonsiteissueqty => "", |
276 |
maxonsiteissueqty => "", |
277 |
maxsuspensiondays => "", |
277 |
maxsuspensiondays => "", |
278 |
no_auto_renewal_after => "", |
278 |
no_auto_renewal_after => "", |
Lines 293-320
if ( $step == 5 ) {
Link Here
|
293 |
if ($@) { |
293 |
if ($@) { |
294 |
warn $@; |
294 |
warn $@; |
295 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
295 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
296 |
} else { |
|
|
297 |
|
298 |
eval { |
299 |
Koha::CirculationRules->set_rules( |
300 |
{ |
301 |
categorycode => $categorycode, |
302 |
itemtype => $itemtype, |
303 |
branchcode => $branchcode, |
304 |
rules => { |
305 |
maxissueqty => $maxissueqty, |
306 |
} |
307 |
} |
308 |
); |
309 |
}; |
310 |
|
311 |
unless ($@) { |
312 |
push @messages, { code => 'success_on_insert_circ_rule' }; |
313 |
} |
314 |
else { |
315 |
warn $@; |
316 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
317 |
} |
318 |
} |
296 |
} |
319 |
} |
297 |
} |
320 |
|
298 |
|
321 |
- |
|
|