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:
parent
09d3fd9b95
commit
f6fd36ab77
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue