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

(-)a/circ/circulation.pl (-9 / +8 lines)
Lines 299-307 if (@$barcodes) { Link Here
299
        };
299
        };
300
300
301
        # always check for blockers on issuing
301
        # always check for blockers on issuing
302
        my ( $error, $question, $alerts, $messages );
302
        my ( $error, $needsconfirmation, $alerts, $messages );
303
        try {
303
        try {
304
            ( $error, $question, $alerts, $messages ) = CanBookBeIssued(
304
            ( $error, $needsconfirmation, $alerts, $messages ) = CanBookBeIssued(
305
                $patron,
305
                $patron,
306
                $barcode, $datedue,
306
                $barcode, $datedue,
307
                $inprocess,
307
                $inprocess,
Lines 378-384 if (@$barcodes) { Link Here
378
        }
378
        }
379
    }
379
    }
380
380
381
    delete $question->{'DEBT'} if ($debt_confirmed);
381
    delete $needsconfirmation->{'DEBT'} if ($debt_confirmed);
382
382
383
    if( $item and ( !$blocker or $force_allow_issue ) ){
383
    if( $item and ( !$blocker or $force_allow_issue ) ){
384
        my $confirm_required = 0;
384
        my $confirm_required = 0;
Lines 391-398 if (@$barcodes) { Link Here
391
            $template_params->{itemhomebranch} = $item->homebranch;
391
            $template_params->{itemhomebranch} = $item->homebranch;
392
392
393
            # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.
393
            # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.
394
            foreach my $needsconfirmation ( keys %$question ) {
394
            foreach my $needsconfirmation ( keys %$needsconfirmation ) {
395
                $template_params->{$needsconfirmation} = $$question{$needsconfirmation};
395
                $template_params->{$needsconfirmation} = $$needsconfirmation{$needsconfirmation};
396
                $template_params->{getTitleMessageIteminfo} = $biblio->title;
396
                $template_params->{getTitleMessageIteminfo} = $biblio->title;
397
                $template_params->{getBarcodeMessageIteminfo} = $item->barcode;
397
                $template_params->{getBarcodeMessageIteminfo} = $item->barcode;
398
                $template_params->{NEEDSCONFIRMATION} = 1;
398
                $template_params->{NEEDSCONFIRMATION} = 1;
Lines 420-429 if (@$barcodes) { Link Here
420
        }
420
        }
421
    }
421
    }
422
422
423
    if ($question->{RESERVE_WAITING} or $question->{RESERVED} or $question->{TRANSFERRED} or $question->{PROCESSING}){
423
    if ($needsconfirmation->{RESERVE_WAITING} or $needsconfirmation->{RESERVED} or $needsconfirmation->{TRANSFERRED} or $needsconfirmation->{PROCESSING}){
424
        $template->param(
424
        $template->param(
425
            reserveborrowernumber => $question->{'resborrowernumber'},
425
            reserveborrowernumber => $needsconfirmation->{'resborrowernumber'},
426
            reserve_id => $question->{reserve_id},
426
            reserve_id => $needsconfirmation->{reserve_id},
427
        );
427
        );
428
    }
428
    }
429
429
430
- 

Return to bug 35216