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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-7 / +7 lines)
Lines 1181-1193 Link Here
1181
1181
1182
            // Handle checkout for fast cataloging
1182
            // Handle checkout for fast cataloging
1183
            // Check the referrer to prevent csrf, fill and submit form
1183
            // Check the referrer to prevent csrf, fill and submit form
1184
            if(document.referrer.split(window.location.origin + '/cgi-bin/koha/cataloguing/additem.pl?')[1].match(/frameworkcode=FA&circborrowernumber=/) ) {
1184
            if ( document.referrer.length ) {
1185
                let urlParams = new URLSearchParams(window.location.search);
1185
                if(document.referrer.split(window.location.origin + '/cgi-bin/koha/cataloguing/additem.pl?')[1].match(/frameworkcode=FA&circborrowernumber=/) ) {
1186
                let barcode = urlParams.get('barcode');
1186
                    let urlParams = new URLSearchParams(window.location.search);
1187
                $('#barcode').val(barcode);
1187
                    let barcode = urlParams.get('barcode');
1188
                $('#mainform').submit();
1188
                    $('#barcode').val(barcode);
1189
                    $('#mainform').submit();
1190
                }
1189
            }
1191
            }
1190
1191
            $("#cancellation-reason").comboBox({
1192
            $("#cancellation-reason").comboBox({
1192
                displayProperty: 'name',
1193
                displayProperty: 'name',
1193
                placeholder: _("Select or type a reason"),
1194
                placeholder: _("Select or type a reason"),
1194
- 

Return to bug 39307