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

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-02-10 15:42:18 +01:00 committed by Katrin Fischer
parent 09d3fd9b95
commit f6fd36ab77
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -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",
},