Bug 41328

Summary: All KohaTable tables broken in Vue components
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: blocker    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 38426    
Bug Blocks:    
Attachments: Bug 41328: Fix incorrect use of ref in KohaTable.vue

Description Jonathan Druart 2025-11-28 09:03:24 UTC
See the current cypress failures on Jenkins

> JS Warning detected: "[Vue warn]: Unhandled error during execution of mounted hook" "\n" " at <KohaTable" "ref=\"table\"" "url=\"/api/v1/preservation/waiting-list/items\"" "options=" {"embed":"biblio","orderCe
Comment 1 Jonathan Druart 2025-11-28 09:04:53 UTC
Created attachment 190011 [details] [review]
Bug 41328: Fix incorrect use of ref in KohaTable.vue

This patch fixes DataTables instantiation in Vue components. There was
an error in the console

Uncaught (in promise) TypeError: table.value.dt is not a function