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

(-)a/circ/circulation.pl (+3 lines)
Lines 487-492 if ( @$barcodes && $op eq 'cud-checkout' ) { Link Here
487
                my ( $patron_for_session, $session_confirmations ) = split( /:/, $patron_session_confirmation, 2 );
487
                my ( $patron_for_session, $session_confirmations ) = split( /:/, $patron_session_confirmation, 2 );
488
                my $patron_match = $borrowernumber == $patron_for_session;
488
                my $patron_match = $borrowernumber == $patron_for_session;
489
                my @conf_keys    = split( /\|/, $session_confirmations );
489
                my @conf_keys    = split( /\|/, $session_confirmations );
490
                if ( $patron_match && grep { $_ eq 'cancelreserve' } @conf_keys ) {
491
                    $cancelreserve = 1;
492
                }
490
                $template_params->{sessionConfirmationKeys} = ();
493
                $template_params->{sessionConfirmationKeys} = ();
491
494
492
                # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.
495
                # pass needsconfirmation to template if issuing is possible and user hasn't yet confirmed.
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +6 lines)
Lines 1729-1734 $(document).ready(function () { Link Here
1729
            sessionConfirmations.push($(this).val());
1729
            sessionConfirmations.push($(this).val());
1730
        });
1730
        });
1731
1731
1732
        // Add cancelreserve checkbox state if it's checked
1733
        if (rememberForSession) {
1734
            if ($("#cancelreserve").is(":checked")) {
1735
                sessionConfirmations.push("cancelreserve");
1736
            }
1737
        }
1732
        if (currentPatron != borrowernumber && !rememberForSession) {
1738
        if (currentPatron != borrowernumber && !rememberForSession) {
1733
            Cookies.set("patronSessionConfirmation", borrowernumber + ":", {
1739
            Cookies.set("patronSessionConfirmation", borrowernumber + ":", {
1734
                sameSite: "Lax",
1740
                sameSite: "Lax",
1735
- 

Return to bug 39604