Bug 38817

Summary: JS error when viewing subfield structure
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: caroline.cyr-la-rose
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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.