Bugzilla – Attachment 178087 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.65 KB, created by
Marcel de Rooy
on 2025-02-14 08:55:10 UTC
(
hide
)
Description:
Bug 35885: Sort vendors by name by default
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-02-14 08:55:10 UTC
Size:
1.65 KB
patch
obsolete
>From 999a1fc0336ba3bf6f927e6aac5c8d47cdaa3edb 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 >Content-Type: text/plain; charset=utf-8 > >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 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../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.39.5
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