[Koha-bugs] [Bug 23753] 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 11 19:33:44 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23753
--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 94027
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94027&action=edit
Bug 23753: Background job JavaScript should not try to call humanMsg library
This patch modifies the JavaScript file which handles background jobs so
that it doesn't try to call the HumanMsg JavaScript library. It now will
show errors in an alert.
The patch also adds a couple of lines of JS to hide the progressbar and
re-enable the submit button when an error is triggered.
To test you'll need to introduce a problem with AJAX operations so that
the error message will be triggered. After applying the patch you can
modify js/background-job-progressbar.js to alter line 63 from:
url: f.action,
...to:
url: f.action + "foo",
Perform the following tests and confirm that an error message is shown
in an alert:
Tools -> Batch record modification
- Test the process of uploading a file of biblionumbers
Tools -> Batch item modification
- Test the process of uploading a file of barcodes
Tools -> Stage MARC records for import
- Test the process of staging an uploaded file for import
Tools -> Staged MARC record management
- Test the process of importing a staged file
The background-jobs JS was not used on these pages and has been removed:
Tools -> Upload local cover image
- Test the process of uploading cover images
Circulation -> Upload offline circulation data
- Test the process of uploading a .koc file
Don't forget to undo your change to background-job-progressbar.js before
signing off.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list