View | Details | Raw Unified | Return to bug 26529
Collapse All | Expand All

(-)a/admin/smart-rules.pl (-6 / +3 lines)
Lines 337-348 elsif ($op eq "set-branch-defaults") { Link Here
337
    my $patron_maxissueqty = strip_non_numeric( scalar $input->param('patron_maxissueqty') );
337
    my $patron_maxissueqty = strip_non_numeric( scalar $input->param('patron_maxissueqty') );
338
    my $patron_maxonsiteissueqty = $input->param('patron_maxonsiteissueqty');
338
    my $patron_maxonsiteissueqty = $input->param('patron_maxonsiteissueqty');
339
    $patron_maxonsiteissueqty = strip_non_numeric($patron_maxonsiteissueqty);
339
    $patron_maxonsiteissueqty = strip_non_numeric($patron_maxonsiteissueqty);
340
    my $holdallowed   = $input->param('holdallowed');
340
    my $holdallowed   = $input->param('holdallowed') ||  undef;
341
    my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy');
341
    my $hold_fulfillment_policy = $input->param('hold_fulfillment_policy') || undef;
342
    my $returnbranch  = $input->param('returnbranch');
342
    my $returnbranch  = $input->param('returnbranch') || undef;
343
    my $max_holds = strip_non_numeric( scalar $input->param('max_holds') );
343
    my $max_holds = strip_non_numeric( scalar $input->param('max_holds') );
344
    $holdallowed =~ s/\s//g;
345
    $holdallowed = undef if $holdallowed !~ /^\d+/;
346
344
347
    if ($branch eq "*") {
345
    if ($branch eq "*") {
348
        Koha::CirculationRules->set_rules(
346
        Koha::CirculationRules->set_rules(
349
- 

Return to bug 26529