Bug 38817 - JS error when viewing subfield structure
Summary: JS error when viewing subfield structure
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-02 23:28 UTC by Lucas Gass (lukeg)
Modified: 2025-03-13 14:34 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-01-02 23:28:03 UTC
Noticed when testing something else. 


Uncaught Sortable: `el` must be an HTMLElement, not [object Undefined]

To recreate: 
1. Go to Administration > MARC bibliographic framework 
2. Pick any framework and MARC structure
3. Pick any subfield and View subfield 

Notice the console error.
Comment 1 Caroline Cyr La Rose 2025-03-13 14:28:16 UTC
I just got the same bug trying to create a Cypress test with that page. It breaks everything with Cypress and you can't do anything after accessing the page.
Comment 2 Caroline Cyr La Rose 2025-03-13 14:34:10 UTC
I don't know if it's relevant since it's for Cypress and not Koha, but I added 
this block in my test

  Cypress.on('uncaught:exception', (err, runnable) => {
    return false; // Prevent Cypress from failing the test until bz38817 is fixed
  });

Just thought I'd put this here in case someone else come here because of that.