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

(-)a/circ/circulation.pl (-11 / +10 lines)
Lines 356-376 if (@$barcodes) { Link Here
356
        }
356
        }
357
    }
357
    }
358
358
359
    if ( $error->{DEBT_GUARANTORS} ) {
359
    # Only some errors will block when performing forced onsite checkout,
360
        $template_params->{DEBT_GUARANTORS} = $error->{DEBT_GUARANTORS};
360
    # for other cases all errors will block
361
        $template_params->{IMPOSSIBLE} = 1;
361
    my @blocking_error_codes = ($onsite_checkout and C4::Context->preference("OnSiteCheckoutsForce")) ?
362
        $blocker = 1;
362
        qw( UNKNOWN_BARCODE ) : (keys %$error);
363
    }
363
364
364
    foreach my $code ( @blocking_error_codes ) {
365
    if ( $error->{UNKNOWN_BARCODE} or not $onsite_checkout or not C4::Context->preference("OnSiteCheckoutsForce") ) {
365
        if ($error->{$code}) {
366
        delete $question->{'DEBT'} if ($debt_confirmed);
366
            $template_params->{$code} = $error->{$code};
367
        foreach my $impossible ( keys %$error ) {
368
            $template_params->{$impossible} = $$error{$impossible};
369
            $template_params->{IMPOSSIBLE} = 1;
367
            $template_params->{IMPOSSIBLE} = 1;
370
            $blocker = 1;
368
            $blocker = 1;
371
        }
369
        }
372
    }
370
    }
373
371
372
    delete $question->{'DEBT'} if ($debt_confirmed);
373
374
    if( $item and ( !$blocker or $force_allow_issue ) ){
374
    if( $item and ( !$blocker or $force_allow_issue ) ){
375
        my $confirm_required = 0;
375
        my $confirm_required = 0;
376
        unless($issueconfirmed){
376
        unless($issueconfirmed){
377
- 

Return to bug 29220