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

(-)a/C4/Reserves.pm (-1 / +1 lines)
Lines 404-410 sub CanItemBeReserved { Link Here
404
404
405
    if ( defined $holds_per_day &&
405
    if ( defined $holds_per_day &&
406
          (   ( $holds_per_day > 0 && $today_holds->count() >= $holds_per_day )
406
          (   ( $holds_per_day > 0 && $today_holds->count() >= $holds_per_day )
407
           or ( $holds_per_day == 0 ) )
407
           or ( $holds_per_day == 0 && $holds_per_day ne '') )
408
        )  {
408
        )  {
409
        return { status => 'tooManyReservesToday', limit => $holds_per_day };
409
        return { status => 'tooManyReservesToday', limit => $holds_per_day };
410
    }
410
    }
(-)a/admin/smart-rules.pl (-2 / +1 lines)
Lines 277-283 elsif ($op eq 'add') { Link Here
277
    my $holds_per_record = $input->param('holds_per_record');
277
    my $holds_per_record = $input->param('holds_per_record');
278
    my $holds_per_day    = $input->param('holds_per_day');
278
    my $holds_per_day    = $input->param('holds_per_day');
279
    $holds_per_day =~ s/\s//g;
279
    $holds_per_day =~ s/\s//g;
280
    $holds_per_day = undef if $holds_per_day !~ /^\d+/;
280
    $holds_per_day = '' if $holds_per_day !~ /^\d+/;
281
    my $onshelfholds     = $input->param('onshelfholds') || 0;
281
    my $onshelfholds     = $input->param('onshelfholds') || 0;
282
    $maxissueqty =~ s/\s//g;
282
    $maxissueqty =~ s/\s//g;
283
    $maxissueqty = '' if $maxissueqty !~ /^\d+/;
283
    $maxissueqty = '' if $maxissueqty !~ /^\d+/;
284
- 

Return to bug 18936