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 1747-1752 $(document).ready(function () { Link Here
1747
            sessionConfirmations.push($(this).val());
1747
            sessionConfirmations.push($(this).val());
1748
        });
1748
        });
1749
1749
1750
        // Add cancelreserve checkbox state if it's checked
1751
        if (rememberForSession) {
1752
            if ($("#cancelreserve").is(":checked")) {
1753
                sessionConfirmations.push("cancelreserve");
1754
            }
1755
        }
1750
        if (currentPatron != borrowernumber && !rememberForSession) {
1756
        if (currentPatron != borrowernumber && !rememberForSession) {
1751
            Cookies.set("patronSessionConfirmation", borrowernumber + ":", {
1757
            Cookies.set("patronSessionConfirmation", borrowernumber + ":", {
1752
                sameSite: "Lax",
1758
                sameSite: "Lax",
1753
- 

Return to bug 39604