Bugzilla – Attachment 147850 Details for
Bug 33066
We need a KohaTable Vue component
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33066: Embed vendor and retrieve vendor name from the request
Bug-33066-Embed-vendor-and-retrieve-vendor-name-fr.patch (text/plain), 2.51 KB, created by
Jonathan Druart
on 2023-03-07 14:44:52 UTC
(
hide
)
Description:
Bug 33066: Embed vendor and retrieve vendor name from the request
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-03-07 14:44:52 UTC
Size:
2.51 KB
patch
obsolete
>From 68c13ca598469e018a7da2eebef1bd94e3c1e44c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 7 Mar 2023 15:42:48 +0100 >Subject: [PATCH] Bug 33066: Embed vendor and retrieve vendor name from the > request > >--- > .../prog/js/vue/components/ERM/AgreementsList.vue | 9 ++------- > .../intranet-tmpl/prog/js/vue/components/KohaTable.vue | 1 + > 2 files changed, 3 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >index 502f7ac489c..2180fe85de5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue >@@ -85,6 +85,7 @@ export default { > building_table: false, > tableOptions: { > columns: this.getTableColumns(), >+ options: { embed: "vendor" }, > url: () => this.table_url(), > table_settings: this.agreement_table_settings, > add_filters: true, >@@ -202,10 +203,6 @@ export default { > getTableColumns: function () { > let get_lib_from_av = this.get_lib_from_av > let escape_str = this.escape_str >- let vendors_map = this.vendors.reduce((map, e) => { >- map[e.id] = e >- return map >- }, {}) > > return [ > { >@@ -229,9 +226,7 @@ export default { > searchable: true, > orderable: true, > render: function (data, type, row, meta) { >- return row.vendor_id != undefined >- ? row.vendor_id //escape_str(vendors_map[row.vendor_id].name) >- : "" >+ return row.vendor_id != undefined ? row.vendor.name : "" > }, > }, > { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue >index 2e0173e1a2f..7c53c9bdf5e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/KohaTable.vue >@@ -46,6 +46,7 @@ export default { > }, > buttons, > default_search: this.$route.query.q, >+ ...this.options, > }, > hidden_ids, > included_ids, >-- >2.25.1
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 33066
:
147352
|
147353
|
147354
|
147692
|
147693
|
147694
|
147713
|
147846
|
147847
|
147848
|
147849
|
147850
|
147851
|
147852
|
147853
|
147855
|
147856
|
147857
|
147858
|
147862
|
147865
|
147902
|
147903
|
147904
|
147905
|
147906
|
147907
|
147908
|
147909
|
147910
|
147911
|
147912
|
147913
|
147914
|
147915
|
147916
|
147917
|
147918
|
147921
|
147922
|
147923
|
147925
|
147926
|
147928
|
147957
|
147960
|
147971
|
147972
|
148718
|
149158
|
149159
|
149160
|
149161
|
149162
|
149163
|
149164
|
149165
|
149166
|
149167
|
149168
|
149169
|
149170
|
149171
|
149172
|
149173
|
149174
|
149175
|
149176
|
149177
|
149178
|
149179
|
149180
|
149181
|
149182
|
149183