https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44113 Bug ID: 44113 Summary: Fix error checking in process_koc.tt, import_borrowers.tt and stage-marc-import.tt Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: m.de.rooy@rijksmuseum.nl QA Contact: testopia@bugs.koha-community.org Target Milestone: --- See bug 44103 comment3 and also bug 44106 for upload-images.js (local cover images). Copying part of the comment referred to: koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt: xhr = AjaxUpload($("#fileToUpload"), $("#fileuploadprogress"), "temp=1", cbUpload); Just wondering if the cbUpload else branch works here (but out of scope; the status failed or denied is passed). $("#fileuploadfailed").text(_("Upload status: ") + (status == "failed" ? _("Failed") + " - (" + errCode + ") " + errMsgs[errCode] : status == "denied" ? _("Denied") : status)); Does that work: errMsgs[errCode] ? koha-tmpl/intranet-tmpl/prog/en/modules/tools/import_borrowers.tt: xhr = AjaxUpload($("#fileToUpload"), $("#fileuploadprogress"), "temp=1", cbUpload); Same code as in process_koc.tt. Same doubts. koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt: xhr = AjaxUpload($("#fileToUpload"), $("#fileuploadprogress"), "temp=1", cbUpload); Again same code. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.