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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-2 / +2 lines)
Lines 242-247 Link Here
242
            $("#ExportSelected").click(function () {
242
            $("#ExportSelected").click(function () {
243
                // We need to use "input[name=serialid]:checked" instead of "input:checked". Otherwise, the "check all" box will pass the value of "on" as a serialid, which produces a SQL error.
243
                // We need to use "input[name=serialid]:checked" instead of "input:checked". Otherwise, the "check all" box will pass the value of "on" as a serialid, which produces a SQL error.
244
                var selected = $("input[name=serialid]:checked");
244
                var selected = $("input[name=serialid]:checked");
245
                var supplierid = [% supplierid | html %]
245
246
246
                if (selected.length == 0) {
247
                if (selected.length == 0) {
247
                    alert(_("Please select at least one item to export."));
248
                    alert(_("Please select at least one item to export."));
Lines 249-255 Link Here
249
                }
250
                }
250
251
251
                // Building the url from currently checked boxes
252
                // Building the url from currently checked boxes
252
                var url = "/cgi-bin/koha/serials/lateissues-export.pl?supplierid=&op=claims";
253
                var url = "/cgi-bin/koha/serials/lateissues-export.pl?supplierid" + supplierid + "=&op=claims";
253
                for (var i = 0; i < selected.length; i++) {
254
                for (var i = 0; i < selected.length; i++) {
254
                    url += "&amp;serialid=" + selected[i].value;
255
                    url += "&amp;serialid=" + selected[i].value;
255
                }
256
                }
256
- 

Return to bug 39915