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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +1 lines)
Lines 1149-1155 Link Here
1149
1149
1150
            // Handle checkout for fast cataloging
1150
            // Handle checkout for fast cataloging
1151
            // Check the referrer to prevent csrf, fill and submit form
1151
            // Check the referrer to prevent csrf, fill and submit form
1152
            if(document.referrer.split('?')[0] === window.location.origin +'/cgi-bin/koha/cataloguing/additem.pl') {
1152
            if(document.referrer.split(window.location.origin + '/cgi-bin/koha/cataloguing/additem.pl?')[1].match(/frameworkcode=FA&circborrowernumber=/) ) {
1153
                let urlParams = new URLSearchParams(window.location.search);
1153
                let urlParams = new URLSearchParams(window.location.search);
1154
                let barcode = urlParams.get('barcode');
1154
                let barcode = urlParams.get('barcode');
1155
                $('#barcode').val(barcode);
1155
                $('#barcode').val(barcode);
1156
- 

Return to bug 38649