Bugzilla – Attachment 177828 Details for
Bug 35885
ERM vendor sort order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35885: Sort vendors by name by default
Bug-35885-Sort-vendors-by-name-by-default.patch (text/plain), 1.55 KB, created by
Magnus Enger
on 2025-02-12 09:02:39 UTC
(
hide
)
Description:
Bug 35885: Sort vendors by name by default
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2025-02-12 09:02:39 UTC
Size:
1.55 KB
patch
obsolete
>From 7d695c8e27acad687be9527224f76c567df3b792 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 Feb 2025 15:42:18 +0100 >Subject: [PATCH] Bug 35885: Sort vendors by name by default > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >To reproduce: >- Set ERMModule = Enable >- In the Acquisitions module I added 4 vendors, with names > X, A, C, Y, in that order >- Went to E-resource management > Agreements > New agreement >- In the "Vendor" dropdown, the vendors are listed in the > order they were entered: X, A, C, Y > >To test: >- Applied the patch + restart_all + run "yarn js:build" in the > cloned Koha repo inside KTD >- Shift-reload the "New agreement" page >- Vendors are in alphabetical order >--- > .../intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js >index 72f1a1d79c..154515fd3e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/acquisition-api-client.js >@@ -13,7 +13,7 @@ export class AcquisitionAPIClient extends HttpClient { > this.getAll({ > endpoint: "vendors", > query, >- params, >+ params: { _order_by: "name", ...params }, > headers: { > "x-koha-embed": "aliases", > }, >-- >2.34.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 35885
:
177700
|
177828
|
178087