Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Owen Leonard 13ad213273
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.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-10-25 09:42:22 -03:00
..
access_files.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
additional-contents.tt Bug 31609: JavaScript error on Additional contents main page 2022-10-25 09:42:22 -03:00
automatic_item_modification_by_age.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
batch_delete_records.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
batch_extend_due_dates.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
batch_record_modification.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
batchMod-del.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
batchMod-edit.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
batchMod.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
cleanborrowers.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
csv-profiles.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
export.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
holidays.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
import_borrowers.tt Bug 31850: Patron import: welcome email option style as list 2022-10-24 13:22:09 -03:00
inventory.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
letter.tt Bug 31766: Add page-section wrapper to notice table 2022-10-17 08:01:56 -03:00
manage-marc-import.tt Bug 31834: Replace incorrect "table" class from MARC imports table 2022-10-24 17:10:57 -03:00
marc_modification_templates.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
modborrowers.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
overduerules.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
page.tt
picture-upload.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
preview_letter.tt
problem-reports.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
quotes-upload.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
quotes.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
scheduler.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
showdiffmarc.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
stage-marc-import.tt Bug 31812: Update 'Stage for import' button to be primary 2022-10-24 15:42:43 -03:00
stockrotation.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
tools-home.tt Bug 31162: Add a cataloging module home page 2022-10-18 10:20:58 -03:00
upload-images.tt Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
upload.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
viewlog.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00