[Koha-bugs] [Bug 23753] New: Background job JavaScript should not try to call humanMsg library

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 4 18:12:23 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23753

            Bug ID: 23753
           Summary: Background job JavaScript should not try to call
                    humanMsg library
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Templates
          Assignee: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org

While trying to fix Bug 8645 I noticed that background-job-progressbar.js has
error-handling code which tries to call the "humanMsg" function which is
defined in the "HUMANIZED MESSAGES" plugin humanmsg.js. The plugin is currently
loaded on the following pages:

admin\preferences.tt
cataloguing\editor.tt
tools\stage-marc-import.tt

Whereas background-job-progressbar.js is used on these pages:

offline_circ\process_koc.tt
tools\batch_record_modification.tt
tools\batchMod-edit.tt
tools\manage-marc-import.tt
tools\stage-marc-import.tt
tools\upload-images.tt

The background job error handling doesn't do anything other than return the
AJAX error message, so I don't think it's worth it to add the humanmsg plugin
everywhere. Better, I think, to change it to an alert.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list