Bugzilla – Attachment 190078 Details for
Bug 41354
Error when loading "Record sources" Vue app
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41354: Fix record sources Vue app
caed636.patch (text/plain), 1.43 KB, created by
Jonathan Druart
on 2025-12-02 13:04:05 UTC
(
hide
)
Description:
Bug 41354: Fix record sources Vue app
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-12-02 13:04:05 UTC
Size:
1.43 KB
patch
obsolete
>From caed6362c35e94e244cfc62c0ed133a9d4966a30 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 2 Dec 2025 14:02:38 +0100 >Subject: [PATCH] Bug 41354: Fix record sources Vue app > >It fixes a JS error in the console >Uncaught (in promise) TypeError: can't convert undefined to object > >Also fixes the cypress tests: >t/cypress/integration/Admin/RecordSources_spec.ts > >Test plan: >Create a new record source >--- > .../intranet-tmpl/prog/js/vue/components/ResourceList.vue | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue >index 1d4038acac9..7b8d51aee12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue >@@ -290,9 +290,9 @@ export default { > ).map(col => { > const filterOptions = > props.instancedResource.tableOptions.filters_options; >- const filterRequired = Object.keys(filterOptions).includes( >- col.data >- ); >+ const filterRequired = >+ filterOptions && >+ Object.keys(filterOptions).includes(col.data); > if (filterRequired) { > col.dataFilter = col.data; > } >-- >2.43.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41354
:
190078
|
190093
|
190104