[Koha-bugs] [Bug 31609] JavaScript error on Additional contents main page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 23 16:42:15 CEST 2022


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 140919
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140919&action=edit
Bug 31609: JavaScript error on Additional contents main page

This patch makes a minor modification to the JavaScript
on the Additional contents page to prevent an error when
there are no tabs present on the page.

The JS needs an additional check so that it doesn't run
when there are no tabs.

To test you should have more than one language installed.

- Before the patch, you would see a JavaScript error in
  the console: "Uncaught TypeError: can't access property
  "hash", firstTab[0] is undefined."
- Apply the patch and go to Tools -> Additional
  contents.
- With the patch applied there should be no error on the
  additional contents main page.
- Try creating or editing additional contents entries to
  confirm that the interface still works correctly.

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


More information about the Koha-bugs mailing list