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 294-319
if ( $step == 5 ) {
Link Here
|
294 |
warn $@; |
294 |
warn $@; |
295 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
295 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
296 |
} else { |
296 |
} else { |
297 |
|
297 |
push @messages, { code => 'success_on_insert_circ_rule' }; |
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 |
push @messages, { code => 'error_on_insert_circ_rule' }; |
316 |
} |
317 |
} |
298 |
} |
318 |
} |
299 |
} |
319 |
|
300 |
|
320 |
- |
|
|